RE: [xml] Win32/MSVC Facelift
- From: "Vakoc, Mark" <Mark_Vakoc jdedwards com>
- To: "'xml gnome org'" <xml gnome org>
- Subject: RE: [xml] Win32/MSVC Facelift
- Date: Thu, 26 Jul 2001 13:32:53 -0600
int LIBXMLAPI someFunction();
extern LIBXMLEXP someExportedVariable;
Implementation along the lines of (in xmlwin32config.h)
#ifdef LIBXML_EXPORTS /* defined in the win32 projects as
preprocessor*/
#define LIBXMLEXP __declspec(dllexport)
#else
#define LIBXMLEXP __declspec(dllimport)
#endif
#define LIBXMLAPI LIBXMLEXP __cdecl
Scratch that. This breaks when when the return type involves a '*' ptr,
i.e.
xmlNodePtr LIBXMPAPI function(); /* works just fine */
xmlChar* LIBXMLAPI function(); /* fails to compile, error C2059 */
Unless there is a workaround, this seems to break the 1 macro with no
.def.src approach.
Argh...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]