From 0d2cb14b9574263249f440a59fee85498edf5220 Mon Sep 17 00:00:00 2001 From: Thomas Jensen Date: Mon, 22 Mar 2021 20:43:09 +0100 Subject: [PATCH] Add some defines for compilation on Windows --- src/config.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/config.h b/src/config.h index 9519c48..00f0a17 100644 --- a/src/config.h +++ b/src/config.h @@ -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