From: Mikko Rasa Date: Fri, 6 Jan 2017 11:14:31 +0000 (+0200) Subject: Use the correct define to detect Windows X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=ab2cda34b99f122a647c1457e8cb0b46715802af Use the correct define to detect Windows --- diff --git a/scripts/extgen.py b/scripts/extgen.py index b3ed9c8f..8d7bfcb1 100755 --- a/scripts/extgen.py +++ b/scripts/extgen.py @@ -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) diff --git a/source/extension.cpp b/source/extension.cpp index 51a84db6..2dc298c1 100644 --- a/source/extension.cpp +++ b/source/extension.cpp @@ -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(wglGetProcAddress(name.c_str())); #elif defined(__APPLE__) (void)name;