platform_info.h (241B)
1 #ifndef PLATFORM_INFO_H 2 #define PLATFORM_INFO_H 3 4 #if defined(__linux__) 5 #define PLATFORM_LINUX 6 #elif defined(_WIN32) 7 #define PLATFORM_WINDOWS 8 #elif defined(PLATFORM_WASM) 9 #else 10 #error "Unsupported platform" 11 #endif 12 13 #endif // PLATFORM_INFO_H