Commit f5e9a16ff2dd663f7ca5ea4d9f52179316e286e7

Timothy Gu 2015-03-15T17:21:34

Use SHARED macro to handle DLL export (Originally the SHARED macro is created not to handle this case, but it seems like it works fine for this purpose as well.) Closes #12.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/dlfcn.c b/dlfcn.c
index 324fafc..b1877bd 100644
--- a/dlfcn.c
+++ b/dlfcn.c
@@ -27,7 +27,9 @@
 #include <psapi.h>
 #include <stdio.h>
 
+#ifdef SHARED
 #define DLFCN_WIN32_EXPORTS
+#endif
 #include "dlfcn.h"
 
 /* Note: