]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Second attempt to fix the use of aligned_alloc with BSD
authorSteve Underwood <steveu@coppice.org>
Sat, 8 Feb 2014 14:36:29 +0000 (22:36 +0800)
committerSteve Underwood <steveu@coppice.org>
Sat, 8 Feb 2014 14:36:29 +0000 (22:36 +0800)
libs/spandsp/src/alloc.c

index 3abe086c3c6c97553182905d93d335adbc4b1ff3..273fad30d0a5ed9ffffdda9e65bc2a8f5f0aab96 100644 (file)
 #if !defined(__USE_ISOC11)
 #define __USE_ISOC11
 #endif
-#include <stdlib.h>
 #if defined(__ISO_C_VISIBLE)  &&  __ISO_C_VISIBLE < 2011
+#undef __ISO_C_VISIBLE
 #define __ISO_C_VISIBLE 2011
 #endif
+#include <stdlib.h>
 #if defined(HAVE_MALLOC_H)
 #include <malloc.h>
 #endif