Closed Rangi42 closed 4 days ago
Fixes #1111
This is how https://github.com/google/flatbuffers/pull/6205 and https://github.com/WebAssembly/wabt/pull/1360 dealt with the problem. (Defining _POSIX_C_SOURCE is required on some platforms, like Cygwin, and breaks others, like BSD. CMake makes platform detection easy, but POSIX Make does not, which leaves in-source definition.)
_POSIX_C_SOURCE
This works in OpenBSD 7.5, and in Cygwin on Windows! And as our CI proves, it works in MinGW! :)
Fixes #1111
This is how https://github.com/google/flatbuffers/pull/6205 and https://github.com/WebAssembly/wabt/pull/1360 dealt with the problem. (Defining
_POSIX_C_SOURCE
is required on some platforms, like Cygwin, and breaks others, like BSD. CMake makes platform detection easy, but POSIX Make does not, which leaves in-source definition.)This works in OpenBSD 7.5, and in Cygwin on Windows! And as our CI proves, it works in MinGW! :)