Compare commits

...

2 Commits

Author SHA1 Message Date
Abdelrahman Said
32877cdeaa Fix platform detection on Apple platforms 2024-06-02 20:54:20 +01:00
Abdelrahman Said
7e2d7b28b7 Update .gitignore 2024-06-02 20:54:07 +01:00
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
.cache .cache
.vscode .vscode
test* test*
*.dSYM
compile_commands.json compile_commands.json
libwapp.so libwapp.so

View File

@ -31,6 +31,7 @@
#define WAPP_PLATFORM_GNU #define WAPP_PLATFORM_GNU
#define WAPP_PLATFORM_POSIX #define WAPP_PLATFORM_POSIX
#elif defined(__APPLE__) || defined(__MACH__) #elif defined(__APPLE__) || defined(__MACH__)
#include <TargetConditionals.h>
#if TARGET_OS_IPHONE #if TARGET_OS_IPHONE
#define WAPP_PLATFORM_IOS #define WAPP_PLATFORM_IOS
#define WAPP_PLATFORM_APPLE #define WAPP_PLATFORM_APPLE