Author: Dieter Buerssner
Date: 03:46:53 03/29/05
Go up one level in this thread
On March 29, 2005 at 02:39:09, Fabien Letouzey wrote: > What is the >compiler "define" for (all versions of) MinGW? From the list of predefined macros (cpp -dM): (I just pasted the section, that seems interesting) #define _WIN32 1 #define _X86_ 1 #define i386 1 #define __i386__ 1 #define __SIZE_TYPE__ unsigned int #define __FLT_RADIX__ 2 #define __LDBL_EPSILON__ 1.08420217248550443401e-19L #define __MSVCRT__ 1 #define __FLT_HAS_QUIET_NAN__ 1 #define __FLT_MAX_10_EXP__ 38 #define __LONG_MAX__ 2147483647L #define __FLT_HAS_INFINITY__ 1 #define __stdcall __attribute__((__stdcall__)) #define __LDBL_MANT_DIG__ 64 #define __WCHAR_TYPE__ short unsigned int #define __FLT_DIG__ 6 #define __INT_MAX__ 2147483647 #define WIN32 1 #define __MINGW32__ 1 #define __FLT_MAX_EXP__ 128 #define __DBL_MANT_DIG__ 53 #define __WINT_TYPE__ short unsigned int #define __LDBL_MIN_EXP__ (-16381) #define __LDBL_MAX_10_EXP__ 4932 #define __DBL_EPSILON__ 2.2204460492503131e-16 #define __tune_pentiumpro__ 1 #define __fastcall __attribute__((__fastcall__)) #define WINNT 1 The may change, when -ansi and/or -pedantic flags are given. I did not check it, but I would guess, that at least those starting with double underscore will still be defined (they belong to the compiler namespace and cannot be in contradiction with the C Standard). Regards, Dieter
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.