summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2015-10-13 20:45:33 +0200
committerTom Hacohen <tom@stosb.com>2015-10-14 09:46:56 +0100
commitd06cef9f1798dbf09a31a936a02d3cb873fa8764 (patch)
tree269b39599a9e1ae1bd7bbca81b0786ba7e14f181
parent053a8d698e21d2ec43f10c421177afabda70e2b1 (diff)
downloadefl-d06cef9f1798dbf09a31a936a02d3cb873fa8764.tar.gz
Evil: set EAPI correctly in pwd.h
-rw-r--r--src/lib/evil/pwd.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/evil/pwd.h b/src/lib/evil/pwd.h
index a5ed996b2b..266349052c 100644
--- a/src/lib/evil/pwd.h
+++ b/src/lib/evil/pwd.h
@@ -18,6 +18,22 @@
#include <Evil.h>
+#ifdef EAPI
+# undef EAPI
+#endif /* EAPI */
+
+#ifdef _WIN32
+# ifdef EFL_EVIL_BUILD
+# ifdef DLL_EXPORT
+# define EAPI __declspec(dllexport)
+# else
+# define EAPI
+# endif
+# else
+# define EAPI __declspec(dllimport)
+# endif
+#endif
+
#ifdef __cplusplus
extern "C" {
@@ -76,6 +92,8 @@ EAPI struct passwd *getpwuid (uid_t uid);
}
#endif
+#undef EAPI
+#define EAPI
/**