blueloveTH 2 лет назад
Родитель
Сommit
de980a1eaf
2 измененных файлов с 10 добавлено и 10 удалено
  1. 10 0
      include/pocketpy/common.h
  2. 0 10
      include/pocketpy/export.h

+ 10 - 0
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

+ 0 - 10
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)