#include <assert.h>
+#include "mojo/public/platform/native/thunk_export.h"
+
extern "C" {
static MojoSystemThunks g_thunks = {0};
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))