Use the easy way that rizzo mentioned, only include malloc.h on the Windows platform.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89398 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
9aacf0a023
commit
c47a1d44ba
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue