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

This commit is contained in:
Sylvie authored and GitHub committed 2024-09-29 23:53:15 +02:00
1 parent 4cd0dd5314
commit d5ded84501
3 files changed
+8 -7

No files matched your search

+5
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