summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorDaniel Boles <dboles@src.gnome.org>2020-06-02 16:06:00 +0100
committerDaniel Boles <dboles@src.gnome.org>2020-06-02 16:06:00 +0100
commit72a19fe0ad28a5f3643d3ed26a58179330f49d0c (patch)
tree5dc5e78a155d52dd7e7bf2709b311a20e84d8774 /glib
parente6cd9008db528db6bfa3117adc4fc34f7ed60227 (diff)
downloadglibmm-72a19fe0ad28a5f3643d3ed26a58179330f49d0c.tar.gz
ustring: Silence warning if MSC_VER is undefined/0
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 f0be919f..dad8d549 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 (_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