Commit b70639dc534606a831f074cad388d5f0c5a56649

Timothy Gu 2015-03-11T20:12:25

Do not use dllimport in any case

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/dlfcn.h b/dlfcn.h
index 06c3529..711e431 100644
--- a/dlfcn.h
+++ b/dlfcn.h
@@ -26,8 +26,8 @@ extern "C" {
 
 #if defined(DLFCN_WIN32_EXPORTS)
 #   define DLFCN_EXPORT __declspec(dllexport)
-#elif defined (_MSC_VER) // FIXME: MinGW support
-#   define DLFCN_EXPORT __declspec(dllimport)
+#else
+#   define DLFCN_EXPORT
 #endif
 
 /* POSIX says these are implementation-defined.