summaryrefslogtreecommitdiff
path: root/config.h.win32.in
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2011-10-06 15:02:54 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2011-10-06 15:03:30 +0800
commiteb17516a6731acf7347e9f72ee81651c59087232 (patch)
tree35d9eb7f4be3bc1704c94db3a5b7d8300f2a97c2 /config.h.win32.in
parent3636cf2c640ab0b6a7c3b9d2358332bb52f4dc6e (diff)
downloadglib-eb17516a6731acf7347e9f72ee81651c59087232.tar.gz
config.h.win32(.in): Update for strcasecmp
Visual C++ uses _stricmp, which is identical to strcasecmp on gcc.
Diffstat (limited to 'config.h.win32.in')
-rw-r--r--config.h.win32.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/config.h.win32.in b/config.h.win32.in
index ec43d2804..3b74b4362 100644
--- a/config.h.win32.in
+++ b/config.h.win32.in
@@ -458,11 +458,13 @@
/* #undef HAVE_STPCPY */
/* Define to 1 if you have the `strcasecmp' function. */
-#if !defined(_MSC_VER) && !defined(__DMC__)
+#if defined(_MSC_VER)
+#define strcasecmp _stricmp
+#endif /* _MSC_VER uses _stricmp, which is identical to strcasecmp */
+
+#if !defined(__DMC__)
#define HAVE_STRCASECMP 1
-#else /* _MSC_VER or __DMC__ */
-/* #undef HAVE_STRCASECMP */
-#endif /* _MSC_VER or __DMC__ */
+#endif /* _MSC_VER or __gcc__ */
/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1