From ab2cda34b99f122a647c1457e8cb0b46715802af Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 6 Jan 2017 13:14:31 +0200 Subject: [PATCH] Use the correct define to detect Windows --- scripts/extgen.py | 2 +- source/extension.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.45.2