[asterisk-commits] file: trunk r89398 - /trunk/include/asterisk/compat.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Nov 18 11:49:40 CST 2007


Author: file
Date: Sun Nov 18 11:49:40 2007
New Revision: 89398

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89398
Log:
Use the easy way that rizzo mentioned, only include malloc.h on the Windows platform.

Modified:
    trunk/include/asterisk/compat.h

Modified: trunk/include/asterisk/compat.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/compat.h?view=diff&rev=89398&r1=89397&r2=89398
==============================================================================
--- trunk/include/asterisk/compat.h (original)
+++ trunk/include/asterisk/compat.h Sun Nov 18 11:49:40 2007
@@ -53,7 +53,7 @@
 
 #ifdef HAVE_ALLOCA_H
 #include <alloca.h>    /* not necessarily present - could be in stdlib */
-#elif defined(HAVE_ALLOCA)
+#elif defined(HAVE_ALLOCA) && defined(__MINGW32__)
 #include <malloc.h>    /* see if it is here... */
 #endif
 




More information about the asterisk-commits mailing list