summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-06-15 18:24:38 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2020-06-15 18:30:29 +0800
commitb078cdb597ebe9d1d52ab0a5a25397d25da91967 (patch)
tree4f0857e252f7d3d2fe6bcad1571d09a3952b6d3a /glib
parent4f1e7af1ffc1a67f6da1795e5061c6a4840b7633 (diff)
downloadglibmm-b078cdb597ebe9d1d52ab0a5a25397d25da91967.tar.gz
glib/glibmm/ustring.h: Fix Visual Studio macro check
Commit 8b8af81f accidentally changed the macro check from '_MSC_VER' to 'MSC_VER', fix that. It probably does not matter since Visual Studio 2017 is required, where 'GLIBMM_HAVE_ALLOWS_STATIC_INLINE_NPOS' is enabled, but fix that for consistency's sake.
Diffstat (limited to 'glib')
-rw-r--r--glib/glibmm/ustring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/glibmm/ustring.h b/glib/glibmm/ustring.h
index dad8d549..15a63e61 100644
--- a/glib/glibmm/ustring.h
+++ b/glib/glibmm/ustring.h
@@ -30,7 +30,7 @@
#include <type_traits>
/* work around linker error on Visual Studio if we don't have GLIBMM_HAVE_ALLOWS_STATIC_INLINE_NPOS */
-#if defined(MSC_VER) && MSC_VER >= 1600 && !defined(GLIBMM_HAVE_ALLOWS_STATIC_INLINE_NPOS)
+#if defined(_MSC_VER) && _MSC_VER >= 1600 && !defined(GLIBMM_HAVE_ALLOWS_STATIC_INLINE_NPOS)
const std::basic_string<char>::size_type std::basic_string<char>::npos = (std::basic_string<char>::size_type) -1;
#endif