|
85 | 85 |
|
86 | 86 | // Linux had a few areas where it didn't construct objects in the same order that Windows does. |
87 | 87 | // So when CVProfile::CVProfile() would access g_pMemAlloc, it would crash because the allocator wasn't initalized yet. |
88 | | -#if defined( GNUC ) || defined ( COMPILER_GCC ) || defined( COMPILER_SNC ) |
| 88 | +#if defined( __GNUC__ ) || defined ( COMPILER_GCC ) || defined( COMPILER_SNC ) |
89 | 89 | #define CONSTRUCT_EARLY __attribute__((init_priority(101))) |
90 | 90 | #else |
91 | 91 | #define CONSTRUCT_EARLY |
92 | 92 | #endif |
93 | 93 |
|
94 | 94 | #ifdef _WIN32 |
95 | 95 | #define SELECTANY __declspec(selectany) |
96 | | -#elif defined(GNUC) || defined ( COMPILER_GCC ) || defined( COMPILER_SNC ) |
| 96 | +#elif defined(__GNUC__) || defined ( COMPILER_GCC ) || defined( COMPILER_SNC ) |
97 | 97 | #define SELECTANY __attribute__((weak)) |
98 | 98 | #else |
99 | 99 | #define SELECTANY static |
|
105 | 105 | #if defined(_WIN32) && !defined(_XBOX) |
106 | 106 | #define PLAT_DECL_EXPORT __declspec( dllexport ) |
107 | 107 | #define PLAT_DECL_IMPORT __declspec( dllimport ) |
108 | | -#elif defined(GNUC) || defined(COMPILER_GCC) |
| 108 | +#elif defined(__GNUC__) || defined(COMPILER_GCC) |
109 | 109 | #define PLAT_DECL_EXPORT __attribute__((visibility("default"))) |
110 | 110 | #define PLAT_DECL_IMPORT |
111 | 111 | #elif defined(_XBOX) || defined(COMPILER_SNC) |
|
156 | 156 | #define __stdcall __attribute__ ((__stdcall__)) |
157 | 157 | #endif |
158 | 158 | #define FASTCALL |
159 | | -#elif defined(POSIX) |
| 159 | +#elif IsPosix() |
160 | 160 | #define __stdcall |
161 | 161 | #define __cdecl |
162 | 162 | #define STDCALL |
|
167 | 167 | #define NOINLINE __declspec(noinline) |
168 | 168 | #define NORETURN __declspec(noreturn) |
169 | 169 | #define FORCEINLINE __forceinline |
170 | | -#elif defined(GNUC) || defined(COMPILER_GCC) || defined(COMPILER_SNC) |
| 170 | +#elif defined(__GNUC__) || defined(COMPILER_GCC) || defined(COMPILER_SNC) |
171 | 171 | #define NOINLINE __attribute__ ((noinline)) |
172 | 172 | #define NORETURN __attribute__ ((noreturn)) |
173 | 173 | #if defined(COMPILER_GCC) || defined(COMPILER_SNC) |
|
0 commit comments