X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=tokens.inc;h=d801de9e1f27926a89d0ccdf211f4a62ddd0df1a;hb=1c4280092863759931f2fd0753bee70c2f540808;hp=bca37bb40fd6a3738323499cb6d248369400c7ca;hpb=02f47f268839c472e23095ac0025e5ccbb5ed70a;p=cparser diff --git a/tokens.inc b/tokens.inc index bca37bb..d801de9 100644 --- a/tokens.inc +++ b/tokens.inc @@ -89,26 +89,17 @@ S(_ALL, __thread) S(_ALL, __extension__) S(_ALL, __builtin_classify_type) S(_ALL, __builtin_va_list) -S(_ALL, __builtin_expect) -S(_ALL, __builtin_offsetof) S(_ALL, __builtin_va_arg) -S(_ALL, __builtin_va_end) -S(_ALL, __builtin_alloca) -S(_ALL, __builtin_inf) -S(_ALL, __builtin_inff) -S(_ALL, __builtin_infl) -S(_ALL, __builtin_nan) -S(_ALL, __builtin_nanf) -S(_ALL, __builtin_nanl) +S(_ALL, __builtin_va_copy) +S(_ALL, __builtin_offsetof) +S(_ALL, __builtin_constant_p) +S(_ALL, __builtin_types_compatible_p) S(_ALL, __builtin_isgreater) S(_ALL, __builtin_isgreaterequal) S(_ALL, __builtin_isless) S(_ALL, __builtin_islessequal) S(_ALL, __builtin_islessgreater) S(_ALL, __builtin_isunordered) -S(_ALL, __builtin_constant_p) -S(_ALL, __builtin_prefetch) -S(_ALL, __builtin_huge_val) S(_ALL, __PRETTY_FUNCTION__) S(_ALL, __FUNCTION__) S(_ALL, __label__) @@ -121,10 +112,41 @@ S(_MS, __FUNCDNAME__) #ifdef __w64 #undef __w64 #endif +#ifdef __ptr32 +#undef __ptr32 +#endif #ifdef __ptr64 #undef __ptr64 #endif +/* needed on MinGW */ +#ifdef __MINGW32__ +#ifdef __int8 +#undef __int8 +#endif +#ifdef __int16 +#undef __int16 +#endif +#ifdef __int32 +#undef __int32 +#endif +#ifdef __int64 +#undef __int64 +#endif +#endif + +#if defined(__MINGW32__) || defined(__CYGWIN__) +#ifdef __cdecl +#undef __cdecl +#endif +#ifdef __stdcall +#undef __stdcall +#endif +#ifdef __fastcall +#undef __fastcall +#endif +#endif + /* needed on darwin... */ #ifdef __signed #undef __signed @@ -228,3 +250,10 @@ S(_MS, __int64, = T__int64) S(_MS, _int128, ) S(_MS, __int128, = T__int128) #undef S + +/* Redefine required macros for MinGW headers */ +#if defined(__MINGW32__) || defined(__CYGWIN__) +#define __stdcall __attribute__((__stdcall__)) +#define __fastcall __attribute__((__fastcall__)) +#define __cdecl __attribute__((__cdecl__)) +#endif