Move definition of _POSIX_C_SOURCE to include/platform.hpp (#1524)

This commit is contained in:
Sylvie
2024-09-29 17:53:15 -04:00
committed by GitHub
parent 4cd0dd5314
commit d5ded84501
3 changed files with 8 additions and 7 deletions

View File

@@ -56,4 +56,9 @@
#define setmode(fd, mode) (0)
#endif
// MingGW and Cygwin need POSIX functions which are not standard C explicitly enabled
#if defined(__MINGW32__) || defined(__MINGW32__) || defined(__CYGWIN__)
#define _POSIX_C_SOURCE 200809L
#endif
#endif // RGBDS_PLATFORM_HPP