diff options
Diffstat (limited to 'src/mapi')
-rw-r--r-- | src/mapi/glapi/gen/gl_x86-64_asm.py | 2 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_x86_asm.py | 2 | ||||
-rw-r--r-- | src/mapi/glapi/glapi_dispatch.c | 2 | ||||
-rw-r--r-- | src/mapi/mapi/u_current.c | 2 | ||||
-rw-r--r-- | src/mapi/mapi/u_thread.h | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/mapi/glapi/gen/gl_x86-64_asm.py b/src/mapi/glapi/gen/gl_x86-64_asm.py index ef759bf7bf3..3ef5e08a9c0 100644 --- a/src/mapi/glapi/gen/gl_x86-64_asm.py +++ b/src/mapi/glapi/gen/gl_x86-64_asm.py @@ -138,7 +138,7 @@ class PrintGenericStubs(gl_XML.gl_print_base): print '# define GL_PREFIX(n) GLNAME(CONCAT(gl,n))' print '# endif' print '' - print '#if defined(PTHREADS) || defined(WIN32)' + print '#if defined(PTHREADS) || defined(_WIN32)' print '# define THREADS' print '#endif' print '' diff --git a/src/mapi/glapi/gen/gl_x86_asm.py b/src/mapi/glapi/gen/gl_x86_asm.py index b43b65dd829..095edcdc035 100644 --- a/src/mapi/glapi/gen/gl_x86_asm.py +++ b/src/mapi/glapi/gen/gl_x86_asm.py @@ -78,7 +78,7 @@ class PrintGenericStubs(gl_XML.gl_print_base): print '#define GLOBL_FN(x) GLOBL x' print '#endif' print '' - print '#if defined(PTHREADS) || defined(WIN32)' + print '#if defined(PTHREADS) || defined(_WIN32)' print '# define THREADS' print '#endif' print '' diff --git a/src/mapi/glapi/glapi_dispatch.c b/src/mapi/glapi/glapi_dispatch.c index 989f4a3fc30..be65ebedd1d 100644 --- a/src/mapi/glapi/glapi_dispatch.c +++ b/src/mapi/glapi/glapi_dispatch.c @@ -43,7 +43,7 @@ #if !(defined(USE_X86_ASM) || defined(USE_X86_64_ASM) || defined(USE_SPARC_ASM)) -#if defined(WIN32) +#if defined(_WIN32) #define KEYWORD1 GLAPI #else #define KEYWORD1 PUBLIC diff --git a/src/mapi/mapi/u_current.c b/src/mapi/mapi/u_current.c index 21a07abbae5..d902375f8c6 100644 --- a/src/mapi/mapi/u_current.c +++ b/src/mapi/mapi/u_current.c @@ -125,7 +125,7 @@ static int ThreadSafe; void u_current_destroy(void) { -#if defined(THREADS) && defined(WIN32) +#if defined(THREADS) && defined(_WIN32) u_tsd_destroy(&u_current_table_tsd); u_tsd_destroy(&u_current_user_tsd); #endif diff --git a/src/mapi/mapi/u_thread.h b/src/mapi/mapi/u_thread.h index ffe17b207a3..e53f872c92f 100644 --- a/src/mapi/mapi/u_thread.h +++ b/src/mapi/mapi/u_thread.h @@ -153,7 +153,7 @@ u_tsd_set(struct u_tsd *tsd, void *ptr) * IMPORTANT: Link with multithreaded runtime library when THREADS are * used! */ -#ifdef WIN32 +#ifdef _WIN32 struct u_tsd { DWORD key; @@ -225,7 +225,7 @@ u_tsd_set(struct u_tsd *tsd, void *ptr) } } -#endif /* WIN32 */ +#endif /* _WIN32 */ /* |