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.
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: