summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2022-01-13 02:30:36 +0000
committerSadie Powell <sadie@witchery.services>2022-01-13 02:35:23 +0000
commit2881ba112b7b4ef084172f4de501211032ee9f91 (patch)
treed1272b1ece2ce0756b4f6228fedc01889b096b0c /include
parent1ee81580c63b4548935687f93e074905b26abddc (diff)
Clean up the predefined variables on Windows.
- Use _MSC_VER for detecting MSVC instead of a custom define. - Remove MINGW as you can use __MINGW32__ to detect this. - Stop defining _WIN32 as this will always be defined on Windows.
Diffstat (limited to 'include')
-rw-r--r--include/sysconf.h.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sysconf.h.cmake b/include/sysconf.h.cmake
index 848df3f52..228b5b5ec 100644
--- a/include/sysconf.h.cmake
+++ b/include/sysconf.h.cmake
@@ -20,7 +20,7 @@
#ifdef _WIN32
# define popen _popen
# define pclose _pclose
-# ifdef MSVCPP
+# ifdef _MSC_VER
# define PATH_MAX MAX_PATH
# endif
# define sleep(x) Sleep(x * 1000)