This commit is contained in:
blueloveTH 2023-12-09 18:39:42 +08:00
parent 1adc853eec
commit de980a1eaf
2 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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)