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/ui/dialog/spellcheck.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ui/dialog/spellcheck.cpp') diff --git a/src/ui/dialog/spellcheck.cpp b/src/ui/dialog/spellcheck.cpp index 972f2d1f9..267b52423 100644 --- a/src/ui/dialog/spellcheck.cpp +++ b/src/ui/dialog/spellcheck.cpp @@ -39,7 +39,7 @@ #include -#ifdef WIN32 +#ifdef _WIN32 #include #endif @@ -312,7 +312,7 @@ SpellCheck::init(SPDesktop *d) gtk_widget_set_sensitive(dictionary_combo, false); start_button.set_sensitive(false); -#ifdef WIN32 +#ifdef _WIN32 // on windows, dictionaries are in a lib/aspell-0.60 subdir off inkscape's executable dir; // this is some black magick to find out the executable path to give it to aspell char exeName[MAX_PATH+1]; @@ -330,7 +330,7 @@ SpellCheck::init(SPDesktop *d) #ifdef HAVE_ASPELL { AspellConfig *config = new_aspell_config(); -#ifdef WIN32 +#ifdef _WIN32 aspell_config_replace(config, "prefix", exeName); #endif aspell_config_replace(config, "lang", _lang.c_str()); @@ -347,7 +347,7 @@ SpellCheck::init(SPDesktop *d) if (_lang2 != "") { AspellConfig *config = new_aspell_config(); -#ifdef WIN32 +#ifdef _WIN32 aspell_config_replace(config, "prefix", exeName); #endif aspell_config_replace(config, "lang", _lang2.c_str()); @@ -364,7 +364,7 @@ SpellCheck::init(SPDesktop *d) if (_lang3 != "") { AspellConfig *config = new_aspell_config(); -#ifdef WIN32 +#ifdef _WIN32 aspell_config_replace(config, "prefix", exeName); #endif aspell_config_replace(config, "lang", _lang3.c_str()); -- cgit v1.2.3