diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-06-15 18:24:38 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-06-15 18:24:38 +0800 |
commit | ed96df5fa32ed543a51401cfc030939210055e14 (patch) | |
tree | e5749ebeb154656d61834cbf5ed691930621fa98 | |
parent | 50dc004c9523b402dc93642dbe7914ff1605b303 (diff) | |
download | glibmm-ed96df5fa32ed543a51401cfc030939210055e14.tar.gz |
glib/glibmm/ustring.h: Fix building on Visual Studio 2015
Commit 8b8af81f accidentally changed the macro check from '_MSC_VER' to
'MSC_VER', fix that, so that things build correctly on Visual Studio 2015
-rw-r--r-- | glib/glibmm/ustring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/glibmm/ustring.h b/glib/glibmm/ustring.h index c3e67209..6d7b736b 100644 --- a/glib/glibmm/ustring.h +++ b/glib/glibmm/ustring.h @@ -30,7 +30,7 @@ #endif /* 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 |