Second attempt to fix the use of aligned_alloc with BSD

This commit is contained in:
Steve Underwood 2014-02-08 22:36:29 +08:00
parent 4fa68fcd75
commit b2cca974c1
1 changed files with 2 additions and 1 deletions

View File

@ -36,10 +36,11 @@
#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