FIX: should be defined earlier.

This commit is contained in:
iceman1001 2017-02-26 22:01:38 +01:00
parent d216a5711b
commit c3a15ba92f

View file

@ -10,6 +10,8 @@
extern "C" {
#endif
#define _DEFAULT_SOURCE
#if !defined(WAI_MALLOC) || !defined(WAI_FREE) || !defined(WAI_REALLOC)
#include <stdlib.h>
#endif
@ -160,7 +162,6 @@ int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length)
*/
#elif defined(__linux__)
#define _DEFAULT_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>