Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / mojo / public / platform / native / system_thunks.cc
index 6fdc4f4..fed6db9 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <assert.h>
 
+#include "mojo/public/platform/native/thunk_export.h"
+
 extern "C" {
 
 static MojoSystemThunks g_thunks = {0};
@@ -152,14 +154,6 @@ MojoResult MojoUnmapBuffer(void* buffer) {
   return g_thunks.UnmapBuffer(buffer);
 }
 
-// Call this function by looking
-// Always export this api.
-#if defined(WIN32)
-#define THUNK_EXPORT __declspec(dllexport)
-#else
-#define THUNK_EXPORT __attribute__((visibility("default")))
-#endif
-
 extern "C" THUNK_EXPORT size_t MojoSetSystemThunks(
     const MojoSystemThunks* system_thunks) {
   if (system_thunks->size >= sizeof(g_thunks))