Use <malloc.h> also with Digital Mars compiler on Win32. (#346808, Serhat
authorTor Lillqvist <tml@novell.com>
Wed, 17 Jan 2007 02:28:13 +0000 (02:28 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 17 Jan 2007 02:28:13 +0000 (02:28 +0000)
2007-01-17  Tor Lillqvist  <tml@novell.com>

* glib/galloca.h: Use <malloc.h> also with Digital Mars compiler
on Win32. (#346808, Serhat Sevki Dincer)

svn path=/trunk/; revision=5285

ChangeLog
glib/galloca.h

index baab660..0f8ee59 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-17  Tor Lillqvist  <tml@novell.com>
+
+       * glib/galloca.h: Use <malloc.h> also with Digital Mars compiler
+       on Win32. (#346808, Serhat Sevki Dincer)
+
 2007-01-16  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/gthread.h:
index 110beb5..7c59ea4 100644 (file)
@@ -37,7 +37,7 @@
 /* a native and working alloca.h is there */ 
 # include <alloca.h>
 #else /* !__GNUC__ && !GLIB_HAVE_ALLOCA_H */
-# ifdef _MSC_VER
+# if defined(_MSC_VER) || defined(__DMC__)
 #  include <malloc.h>
 #  define alloca _alloca
 # else /* !_MSC_VER */