summaryrefslogtreecommitdiff
path: root/src/bindings/js/eldbus_js
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2018-01-18 18:04:03 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2018-01-18 18:04:03 +0900
commitf5b01ac5ce3d86c3bcd89c4882a77b1c126ca789 (patch)
treecb39aad3598224652d3117f64328d596678ffdc6 /src/bindings/js/eldbus_js
parent8a1655a15cb3863165a7dddaa6021953ce9c18ab (diff)
all: Simplify definition of EAPI
This will help in the transition from Autotools to Meson. This has been tested on Windows for which EFL_XXX_BUILD were first introduced.
Diffstat (limited to 'src/bindings/js/eldbus_js')
-rw-r--r--src/bindings/js/eldbus_js/Eldbus_Js.hh13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/bindings/js/eldbus_js/Eldbus_Js.hh b/src/bindings/js/eldbus_js/Eldbus_Js.hh
index 00da9ca924..3f2e07247b 100644
--- a/src/bindings/js/eldbus_js/Eldbus_Js.hh
+++ b/src/bindings/js/eldbus_js/Eldbus_Js.hh
@@ -12,15 +12,15 @@
12#endif 12#endif
13 13
14#ifdef _WIN32 14#ifdef _WIN32
15# ifdef EFL_EINA_JS_BUILD 15# ifdef EFL_BUILD
16# ifdef DLL_EXPORT 16# ifdef DLL_EXPORT
17# define EAPI __declspec(dllexport) 17# define EAPI __declspec(dllexport)
18# else 18# else
19# define EAPI 19# define EAPI
20# endif /* ! DLL_EXPORT */ 20# endif
21# else 21# else
22# define EAPI __declspec(dllimport) 22# define EAPI __declspec(dllimport)
23# endif /* ! EFL_ECORE_BUILD */ 23# endif
24#else 24#else
25# ifdef __GNUC__ 25# ifdef __GNUC__
26# if __GNUC__ >= 4 26# if __GNUC__ >= 4
@@ -31,7 +31,7 @@
31# else 31# else
32# define EAPI 32# define EAPI
33# endif 33# endif
34#endif /* ! _WIN32 */ 34#endif
35 35
36namespace efl { namespace eldbus { namespace js { 36namespace efl { namespace eldbus { namespace js {
37 37
@@ -40,9 +40,12 @@ EAPI void register_eldbus_core(v8::Isolate* isolate, v8::Handle<v8::Object> expo
40EAPI void register_eldbus_message(v8::Isolate* isolate, v8::Handle<v8::Object> exports); 40EAPI void register_eldbus_message(v8::Isolate* isolate, v8::Handle<v8::Object> exports);
41EAPI void register_eldbus_object_mapper(v8::Isolate* isolate, v8::Handle<v8::Object> exports); 41EAPI void register_eldbus_object_mapper(v8::Isolate* isolate, v8::Handle<v8::Object> exports);
42EAPI void register_eldbus(v8::Isolate* isolate, v8::Handle<v8::Object> exports); 42EAPI void register_eldbus(v8::Isolate* isolate, v8::Handle<v8::Object> exports);
43 43
44} } } 44} } }
45 45
46#undef EAPI
47#define EAPI
48
46#include <eldbus_js_util.hh> 49#include <eldbus_js_util.hh>
47 50
48#endif 51#endif