mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-23 13:00:17 +00:00
28 lines
407 B
C
28 lines
407 B
C
#ifndef PK_EXPORT
|
|
|
|
#ifdef _WIN32
|
|
|
|
#ifndef WIN32_LEAN_AND_MEAN
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#endif
|
|
|
|
#ifndef NOMINMAX
|
|
#define NOMINMAX
|
|
#endif
|
|
|
|
#include <Windows.h>
|
|
|
|
#define PK_EXPORT __declspec(dllexport)
|
|
#elif __EMSCRIPTEN__
|
|
#include <emscripten.h>
|
|
#define PK_EXPORT EMSCRIPTEN_KEEPALIVE
|
|
#else
|
|
#define PK_EXPORT __attribute__((visibility("default")))
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
#ifdef __unix__
|
|
#include <dlfcn.h>
|
|
#endif |