From e65f269766cdd95303caa4a55b834f0b24f3be2f Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 13 Jan 2017 17:25:38 -0500 Subject: [PATCH] fix platform detection for Windows when using MSYS2 --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wscript b/wscript index 14d48b4..59f59c4 100644 --- a/wscript +++ b/wscript @@ -21,7 +21,7 @@ def build(bld): includes += ["libs/glcxx/include"] if platform.system() == "Linux": defines += ["PLATFORM_LINUX"] - elif platform.system() == "Windows": + elif re.search(r'MINGW', platform.system()): defines += ["PLATFORM_WINDOWS"] defines += ['GLCXX_GL_INCLUDE="gl3w.h"'] sources = bld.path.ant_glob(["src/**/*.cc", "src/**/*.c", "libs/glcxx/src/glcxx/*"])