]> git.tdb.fi Git - libs/gl.git/commitdiff
Use the correct define to detect Windows
authorMikko Rasa <tdb@tdb.fi>
Fri, 6 Jan 2017 11:14:31 +0000 (13:14 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 6 Jan 2017 11:15:37 +0000 (13:15 +0200)
scripts/extgen.py
source/extension.cpp

index b3ed9c8f6d6fa033fc9916cebbf778d98a7f61b6..8d7bfcb1ec1e91c663b33b8aaeec2115b340e05f 100755 (executable)
@@ -500,7 +500,7 @@ if funcs:
 #define GET_PROC_ADDRESS(x) get_proc_address(#x)
 #endif
 
-#ifdef WIN32
+#ifdef _WIN32
 #define GET_PROC_ADDRESS_1_1(x) &::x
 #else
 #define GET_PROC_ADDRESS_1_1(x) GET_PROC_ADDRESS(x)
index 51a84db695465038d0732df53f1d84c6e31cbb2c..2dc298c1f5105f13892d2d499567fd0112424a1e 100644 (file)
@@ -238,7 +238,7 @@ const Version &get_glsl_version()
 
 ExtFunc *get_proc_address(const string &name)
 {
-#if defined(WIN32)
+#if defined(_WIN32)
        return reinterpret_cast<ExtFunc *>(wglGetProcAddress(name.c_str()));
 #elif defined(__APPLE__)
        (void)name;