hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=072bba3dc10cae6c58264fd48bf1a9cdd1aec431

commit 072bba3dc10cae6c58264fd48bf1a9cdd1aec431
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Thu Aug 20 11:03:46 2015 +0900

    fix win32 porting.
    
    specify missing dll import/export declarations for EAPIs.
---
 src/lib/enventor_private.h | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/src/lib/enventor_private.h b/src/lib/enventor_private.h
index 1b37811..82638a8 100644
--- a/src/lib/enventor_private.h
+++ b/src/lib/enventor_private.h
@@ -1,6 +1,25 @@
 #ifndef __ENVENTOR_PRIVATE_H__
 #define __ENVENTOR_PRIVATE_H__
 
+/***
+ * Compatible ABI for Win32
+ ***/
+#ifdef _WIN32
+# ifdef EAPI
+#  undef EAPI
+# endif
+# ifdef ENVENTOR_WIN32_BUILD_SUPPORT
+#  define EAPI __declspec(dllexport)
+# else
+#  define EAPI __declspec(dllimport)
+# endif
+# ifdef EOAPI
+#  undef EOAPI
+# endif
+#define EOAPI EAPI
+#endif
+
+
 #include "common.h"
 
 #define QUOT "&quot;"

-- 


Reply via email to