diff --git a/src/platform.h b/src/platform.h index 21c459a74..7ddb612ae 100644 --- a/src/platform.h +++ b/src/platform.h @@ -3,7 +3,6 @@ #ifndef UNILIB_H #define UNILIB_H -#define _POSIX_C_SOURCE 200809L #ifdef _MSC_VER #ifndef __STDC__ #define __STDC__ 1 // equivalent to /Za @@ -18,6 +17,8 @@ #pragma warning(disable: 4459) // declaration hides global #endif +#define _POSIX_C_SOURCE 200809L + #ifndef MAX_PATH # define MAX_PATH 4096 #endif diff --git a/src/study.c b/src/study.c index c6dc3b260..fb87987fa 100644 --- a/src/study.c +++ b/src/study.c @@ -54,6 +54,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #include +#include + /* libc includes */ #include #include