From de980a1eafb2da7d3911f1a5b06671d0584178ec Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 9 Dec 2023 18:39:42 +0800 Subject: [PATCH] ... --- include/pocketpy/common.h | 10 ++++++++++ include/pocketpy/export.h | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/pocketpy/common.h b/include/pocketpy/common.h index dd178c47..59ead17c 100644 --- a/include/pocketpy/common.h +++ b/include/pocketpy/common.h @@ -240,4 +240,14 @@ struct is_pod { T(T&&) = delete; \ T& operator=(T&&) = delete; +inline const char* kPlatformStrings[] = { + "win32", // 0 + "emscripten", // 1 + "ios", // 2 + "darwin", // 3 + "android", // 4 + "linux", // 5 + "unknown" // 6 +}; + } // namespace pkpy diff --git a/include/pocketpy/export.h b/include/pocketpy/export.h index 9c919ad9..c6487dd5 100644 --- a/include/pocketpy/export.h +++ b/include/pocketpy/export.h @@ -1,15 +1,5 @@ #pragma once -const char* kPlatformStrings[] = { - "win32", // 0 - "emscripten", // 1 - "ios", // 2 - "darwin", // 3 - "android", // 4 - "linux", // 5 - "unknown" // 6 -}; - #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) //define something for Windows (32-bit and 64-bit, this part is common) #define PK_EXPORT __declspec(dllexport)