Re: [xml] Building libxml2 as a DLL under MinGW MSYS
- From: jhheider attbi com
- To: xml gnome org
- Subject: Re: [xml] Building libxml2 as a DLL under MinGW MSYS
- Date: Thu, 26 Sep 2002 12:56:48 +0000
Igor Zlatkovic wrote:
Or better even 'gcc -dM -E -x c /dev/null'
Indeed, that one is far better :-) It is 'gcc -dM -E
-x c NUL:' on Windows without a posix layer.
Under MSYS (for my machine, of course)
$ gcc -dM -E -x c /dev/null
#define _stdcall __attribute__((__stdcall__))
#define __WINNT 1
#define __i386__ 1
#define _X86_ 1
#define __i386 1
#define ___stdcall__ __attribute__((__stdcall__))
#define WIN32 1
#define __WINNT__ 1
#define __GNUC_MINOR__ 95
#define __declspec(x) __attribute__((x))
#define WINNT 1
#define __MSVCRT__ 1
#define __MINGW32__ 0.2
#define i386 1
#define _WIN32 1
#define __stdcall __attribute__((__stdcall__))
#define __WIN32__ 1
#define __GNUC__ 2
#define __cdecl __attribute__((__cdecl__))
#define __STDC__ 1
#define ___stdcall __attribute__((__stdcall__))
#define __WIN32 1
So it looks like mingw supports most reasonable
variations of the _*WIN32_* macro, and further
specialization should be based on the __MINGW32__ macro.
Jacob
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]