[AD] allegro failing to compile with dmalloc and gnu extensions enabled

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


If you attempt to compile allegro with dmalloc support, and define 
_GNU_SOURCE/__GNU_SOURCE, it'll cause allegro to fail to build, due to 
including dmalloc.h before string.h.

It apparently only happens when gnu extensions are enabled.

Attached a couple patches, and can apply then if necessary.

-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
Index: include/allegro/base.h
===================================================================
--- include/allegro/base.h	(revision 7905)
+++ include/allegro/base.h	(working copy)
@@ -27,6 +27,7 @@
    #include <stddef.h>
    #include <stdlib.h>
    #include <time.h>
+   #include <string.h>
 #endif
 
 #if (defined DEBUGMODE) && (defined FORTIFY)
Index: include/allegro/base.h
===================================================================
--- include/allegro/base.h	(revision 7905)
+++ include/allegro/base.h	(working copy)
@@ -26,6 +26,7 @@
    #include <stddef.h>
    #include <stdlib.h>
    #include <time.h>
+   #include <string.h>
 #endif
 
 #if (defined DEBUGMODE) && (defined FORTIFY)


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/