summaryrefslogtreecommitdiffstats
path: root/src/object/color-profile.cpp
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2018-09-30 21:47:39 +0000
committerEduard Braun <eduard.braun2@gmx.de>2018-10-01 22:50:12 +0000
commit172dbd2b94199731c1bbd2f789e55535188ade5c (patch)
tree907ca31a726661673f72eb35c2a8431e0dc57873 /src/object/color-profile.cpp
parentconfig.h - remove all defines we never use (diff)
downloadinkscape-172dbd2b94199731c1bbd2f789e55535188ade5c.tar.gz
inkscape-172dbd2b94199731c1bbd2f789e55535188ade5c.zip
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
Diffstat (limited to 'src/object/color-profile.cpp')
-rw-r--r--src/object/color-profile.cpp10
1 files changed, 5 insertions, 5 deletions
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 <io/sys.h>
#include <io/resource.h>
-#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 <glibmm/convert.h>
#include "uri.h"
-#ifdef WIN32
+#ifdef _WIN32
#include <icm.h>
-#endif // WIN32
+#endif // _WIN32
using Inkscape::ColorProfile;
using Inkscape::ColorProfileImpl;
@@ -788,7 +788,7 @@ std::set<ColorProfile::FilePlusHome> 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::FilePlusHome> ColorProfile::getBaseProfileDirs() {
}
g_free( utf8Path );
}
-#endif // WIN32
+#endif // _WIN32
return sources;
}