[glib] config.h.win32(.in): Update for strcasecmp
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] config.h.win32(.in): Update for strcasecmp
- Date: Thu, 6 Oct 2011 07:03:37 +0000 (UTC)
commit eb17516a6731acf7347e9f72ee81651c59087232
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Oct 6 15:02:54 2011 +0800
config.h.win32(.in): Update for strcasecmp
Visual C++ uses _stricmp, which is identical to strcasecmp on gcc.
config.h.win32.in | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/config.h.win32.in b/config.h.win32.in
index ec43d28..3b74b43 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]