From 1fe16d3ee6485aeffc8ab63fc2a7ae1c40fdc588 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 4 Nov 2017 23:50:00 -0700 Subject: [PATCH] Fix clang compile under MSYS2 Clang does not define __WINNT__ under Windows. _WIN32 is the closest thing. --- include/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/common.h b/include/common.h index 8317e2bbe..45d3019bb 100644 --- a/include/common.h +++ b/include/common.h @@ -10,7 +10,7 @@ #if defined (__unix__) || defined (__APPLE__) #define _POSIX -#elif defined (__WINNT__) +#elif defined (_WIN32) #define _WIN 1 #else #error Your Operating System is not supported or detected