From 172dbd2b94199731c1bbd2f789e55535188ade5c Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sun, 30 Sep 2018 23:47:39 +0200 Subject: Use _WIN32 instead of WIN32 The former is guaranteed to be set for any compiler targeting win32, the latter is implementation dependent (but works for gcc) See also http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system --- src/object/color-profile.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/object/color-profile.cpp') diff --git a/src/object/color-profile.cpp b/src/object/color-profile.cpp index 38064022a..f010efe33 100644 --- a/src/object/color-profile.cpp +++ b/src/object/color-profile.cpp @@ -20,7 +20,7 @@ #include #include -#ifdef WIN32 +#ifdef _WIN32 #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later. Required for correctly including icm.h #define _WIN32_WINDOWS 0x0410 #endif @@ -46,9 +46,9 @@ #include #include "uri.h" -#ifdef WIN32 +#ifdef _WIN32 #include -#endif // WIN32 +#endif // _WIN32 using Inkscape::ColorProfile; using Inkscape::ColorProfileImpl; @@ -788,7 +788,7 @@ std::set ColorProfile::getBaseProfileDirs() { g_free(path); } -#ifdef WIN32 +#ifdef _WIN32 wchar_t pathBuf[MAX_PATH + 1]; pathBuf[0] = 0; DWORD pathSize = sizeof(pathBuf); @@ -802,7 +802,7 @@ std::set ColorProfile::getBaseProfileDirs() { } g_free( utf8Path ); } -#endif // WIN32 +#endif // _WIN32 return sources; } -- cgit v1.2.3