Fix all-platform validation blockers

This commit is contained in:
2026-06-16 10:26:07 +02:00
parent 4a5bb68fe2
commit 6a9c415d85
9 changed files with 29 additions and 20 deletions

View File

@@ -22,6 +22,8 @@
#define SHADER_VERSION "#version 300 es\n"
#define __GLES__ 1
#define PP_OS "ios"
#undef WITH_CURL
#define WITH_CURL 0
#else
#define __OSX__ 1
#ifdef __OBJC__
@@ -33,6 +35,9 @@
#define SHADER_VERSION "#version 150\n"
#define __GL__ 1
#define PP_OS "osx"
#ifndef WITH_CURL
#define WITH_CURL 1
#endif
#endif
#include <sys/stat.h>
@@ -40,7 +45,6 @@
#include <dirent.h>
#include <dispatch/dispatch.h>
#define BT_SetTerminate void
#define WITH_CURL 1
#elif __ANDROID__
@@ -51,7 +55,9 @@
#include <android/sensor.h>
#include <android/log.h>
#include <android_native_app_glue.h>
#if __has_include(<android_native_app_glue.h>)
#include <android_native_app_glue.h>
#endif
#define SHADER_VERSION "#version 300 es\n"
#define PP_OS "android"
@@ -59,7 +65,9 @@
#define __block
//#define STBI_NEON
#define BT_SetTerminate void
#define WITH_CURL 1
#ifndef WITH_CURL
#define WITH_CURL 1
#endif
#elif _WIN32
@@ -89,7 +97,9 @@
#define SHADER_VERSION "#version 150\n"
#define PP_OS "win"
#define __block
#define WITH_CURL 1
#ifndef WITH_CURL
#define WITH_CURL 1
#endif
#elif __linux__
@@ -109,7 +119,9 @@
#define __GL__ 1
#define __block
#define BT_SetTerminate void
#define WITH_CURL 1
#ifndef WITH_CURL
#define WITH_CURL 1
#endif
#elif defined(EMSCRIPTEN)
@@ -184,6 +196,6 @@
#include <stb/stb_image_write.h>
#include <sqlite3.h>
#ifndef EMSCRIPTEN
#if defined(WITH_CURL) && WITH_CURL && !defined(EMSCRIPTEN)
#include <curl/curl.h>
#endif