This commit is contained in:
Abdelrahman Said 2024-06-02 23:34:38 +01:00
parent cfc98e0137
commit 55d0c25c90

View File

@ -1,6 +1,7 @@
#ifndef PLATFORM_H #ifndef PLATFORM_H
#define PLATFORM_H #define PLATFORM_H
// clang-format off
#if defined(__ANDROID__) #if defined(__ANDROID__)
#define WAPP_PLATFORM_ANDROID #define WAPP_PLATFORM_ANDROID
#define WAPP_PLATFORM_POSIX #define WAPP_PLATFORM_POSIX
@ -23,8 +24,7 @@
#elif defined(__bsdi__) #elif defined(__bsdi__)
#define WAPP_PLATFORM_BSD #define WAPP_PLATFORM_BSD
#define WAPP_PLATFORM_POSIX #define WAPP_PLATFORM_POSIX
#elif defined(__linux__) || defined(linux) || defined(__linux) || \ #elif defined(__linux__) || defined(linux) || defined(__linux) || defined(__gnu_linux__)
defined(__gnu_linux__)
#define WAPP_PLATFORM_LINUX #define WAPP_PLATFORM_LINUX
#define WAPP_PLATFORM_POSIX #define WAPP_PLATFORM_POSIX
#elif defined(__GNU__) || defined(__gnu_hurd__) #elif defined(__GNU__) || defined(__gnu_hurd__)
@ -58,5 +58,6 @@
#else #else
#error "Unrecognised platform" #error "Unrecognised platform"
#endif #endif
// clang-format on
#endif // !PLATFORM_H #endif // !PLATFORM_H