Add #define _POSIX_SOURCE

This is needed for MinGW when compiling C++98, apparently. I put it in
an if-guard because otherwise there'll be a warning from MY compiler
about redefinitions.
This commit is contained in:
Misa authored and Ethan Lee committed 2020-06-17 19:15:07 -04:00
1 parent 3428d962b3
commit 0ee5c07f4a
1 file changed
+3
+3
View File
@@ -23,6 +23,9 @@
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE
#endif
#include <inttypes.h>
#include <cstdio>