summaryrefslogtreecommitdiff
path: root/config.h.win32.in
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2007-01-18 19:05:21 +0000
committerTor Lillqvist <tml@src.gnome.org>2007-01-18 19:05:21 +0000
commit98a5ddc4c8afcb87b81dbd7f2a688d55f1a011e3 (patch)
tree761dcfb5a5c8872f824726240b59233bb50c7624 /config.h.win32.in
parent4651177384e8bae4497e0099582d5cc34a649407 (diff)
config.h.win32.in glib/galloca.h glib/gbacktrace.h glib/gwin32.c
2007-01-17 Tor Lillqvist <tml@novell.com> * config.h.win32.in * glib/galloca.h * glib/gbacktrace.h * glib/gwin32.c * glibconfig.h.win32.in * README.win32: More minor tweaks for Digital Mars compiler. (#346808, Serhat Sevki Dincer) svn path=/trunk/; revision=5294
Diffstat (limited to 'config.h.win32.in')
-rw-r--r--config.h.win32.in42
1 files changed, 24 insertions, 18 deletions
diff --git a/config.h.win32.in b/config.h.win32.in
index c6db93305..79dc2dcba 100644
--- a/config.h.win32.in
+++ b/config.h.win32.in
@@ -83,11 +83,11 @@
#define G_HAVE___INLINE 1
/* Have __inline__ keyword */
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(__DMC__)
#define G_HAVE___INLINE__ 1
-#else /* _MSC_VER */
+#else /* _MSC_VER or __DMC__ */
/* #undef G_HAVE___INLINE__ */
-#endif /* _MSC_VER */
+#endif /* _MSC_VER or __DMC__ */
/* Source file containing theread implementation */
#define G_THREAD_SOURCE "gthread-win32.c"
@@ -263,6 +263,9 @@
/* Define to 1 if you have the `snprintf' function. */
#ifndef _MSC_VER
#define HAVE_SNPRINTF 1
+#ifdef __DMC__
+#define snprintf _snprintf
+#endif
#else /* _MSC_VER */
/* #undef HAVE_SNPRINTF */
#endif /* _MSC_VER */
@@ -292,21 +295,21 @@
/* #undef HAVE_STPCPY */
/* Define to 1 if you have the `strcasecmp' function. */
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(__DMC__)
#define HAVE_STRCASECMP 1
-#else /* _MSC_VER */
+#else /* _MSC_VER or __DMC__ */
/* #undef HAVE_STRCASECMP */
-#endif /* _MSC_VER */
+#endif /* _MSC_VER or __DMC__ */
/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1
/* Define to 1 if you have the <strings.h> header file. */
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(__DMC__)
#define HAVE_STRINGS_H 1
-#else /* _MSC_VER */
+#else /* _MSC_VER or __DMC__ */
/* #undef HAVE_STRINGS_H */
-#endif /* _MSC_VER */
+#endif /* _MSC_VER or __DMC__ */
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
@@ -315,11 +318,11 @@
/* #undef HAVE_STRLCPY */
/* Define to 1 if you have the `strncasecmp' function. */
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(__DMC__)
#define HAVE_STRNCASECMP 1
-#else /* _MSC_VER */
+#else /* _MSC_VER or __DMC__ */
/* #undef HAVE_STRNCASECMP */
-#endif /* _MSC_VER */
+#endif /* _MSC_VER or __DMC__ */
/* Define to 1 if you have the `strsignal' function. */
/* #undef HAVE_STRSIGNAL */
@@ -328,11 +331,11 @@
/* #undef HAVE_SYMLINK */
/* Define to 1 if you have the <sys/param.h> header file. */
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(__DMC__)
#define HAVE_SYS_PARAM_H 1
-#else /* _MSC_VER */
+#else /* _MSC_VER or __DMC__ */
/* #undef HAVE_SYS_PARAM_H */
-#endif /* _MSC_VER */
+#endif /* _MSC_VER or __DMC__ */
/* Define to 1 if you have the <sys/poll.h> header file. */
/* #undef HAVE_SYS_POLL_H */
@@ -371,11 +374,11 @@
/* #undef HAVE_UNSETENV */
/* Define to 1 if you have the <values.h> header file. */
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(__DMC__)
#define HAVE_VALUES_H 1
-#else /* _MSC_VER */
+#else /* _MSC_VER or __DMC__ */
/* #undef HAVE_VALUES_H */
-#endif /* _MSC_VER */
+#endif /* _MSC_VER or __DMC__ */
/* Define to 1 if you have the `vasprintf' function. */
#define HAVE_VASPRINTF 1
@@ -386,6 +389,9 @@
/* Define to 1 if you have the `vsnprintf' function. */
#ifndef _MSC_VER
#define HAVE_VSNPRINTF 1
+#ifdef __DMC__
+#define vsnprintf _vsnprintf
+#endif
#else /* _MSC_VER */
/* #undef HAVE_VSNPRINTF */
#endif /* _MSC_VER */