Commit e5d9fab4054ece0c8e899c00c8341403c22477f1

Silvio Traversaro 2020-08-05T08:50:41

Merge pull request #76 from pali/master Fix compilation with older environments

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/dlfcn.c b/dlfcn.c
index a45a619..6f5da80 100644
--- a/dlfcn.c
+++ b/dlfcn.c
@@ -19,6 +19,9 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#ifndef _WIN32_WINNT
+#define _WIN32_WINNT 0x0501
+#endif
 #ifdef _DEBUG
 #define _CRTDBG_MAP_ALLOC
 #include <stdlib.h>