Add some defines for compilation on Windows

This commit is contained in:
Thomas Jensen 2021-03-22 20:43:09 +01:00
parent 08cf6a5396
commit 0d2cb14b95
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB

View File

@ -37,9 +37,20 @@
#elif defined(__FreeBSD__)
/* do nothing */
#elif defined(__MINGW32__)
#define __MISC_VISIBLE 1
#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE
#endif
#else
#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE
#endif
#endif