Fix linux workflow

This commit is contained in:
UnknownShadow200 2025-05-18 21:37:37 +10:00
parent e436de39b0
commit c7410c9792
4 changed files with 16 additions and 14 deletions

View File

@ -13,6 +13,7 @@ concurrency:
group: ${{ github.ref }}-linux group: ${{ github.ref }}-linux
cancel-in-progress: true cancel-in-progress: true
jobs:
#============================================ #============================================
# =============== 32 BIT LINUX ============== # =============== 32 BIT LINUX ==============
# =========================================== # ===========================================

View File

@ -28,11 +28,12 @@ static void AudioBase_FreeChunks(struct AudioChunk* chunks, int numChunks);
*#########################################################################################################################*/ *#########################################################################################################################*/
/* Simpler to just include subset of OpenAL actually use here instead of including */ /* Simpler to just include subset of OpenAL actually use here instead of including */
/* === BEGIN OPENAL HEADERS === */ /* === BEGIN OPENAL HEADERS === */
#if defined _WIN32 #if defined CC_BUILD_WIN
#define APIENTRY __cdecl #define APIENTRY __cdecl
#else #else
#define APIENTRY #define APIENTRY
#endif #endif
#define AL_NONE 0 #define AL_NONE 0
#define AL_GAIN 0x100A #define AL_GAIN 0x100A
#define AL_SOURCE_STATE 0x1010 #define AL_SOURCE_STATE 0x1010

View File

@ -161,10 +161,10 @@ typedef int CURLcode;
#define CURL_HTTP_VERSION_1_1 2L /* stick to HTTP 1.1 */ #define CURL_HTTP_VERSION_1_1 2L /* stick to HTTP 1.1 */
#if defined _WIN32 #if defined CC_BUILD_WIN
#define APIENTRY __cdecl #define APIENTRY __cdecl
#else #else
#define APIENTRY #define APIENTRY
#endif #endif
static CURLcode (APIENTRY *_curl_global_init)(long flags); static CURLcode (APIENTRY *_curl_global_init)(long flags);

View File

@ -3,19 +3,19 @@
#define _GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 #define _GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
#if defined CC_BUILD_WEB || defined CC_BUILD_ANDROID #if defined CC_BUILD_WEB || defined CC_BUILD_ANDROID
#define PIXEL_FORMAT GL_RGBA #define PIXEL_FORMAT GL_RGBA
#else #else
#define PIXEL_FORMAT _GL_BGRA_EXT #define PIXEL_FORMAT _GL_BGRA_EXT
#endif #endif
#if defined CC_BIG_ENDIAN #if defined CC_BIG_ENDIAN
/* Pixels are stored in memory as A,R,G,B but GL_UNSIGNED_BYTE will interpret as B,G,R,A */ /* Pixels are stored in memory as A,R,G,B but GL_UNSIGNED_BYTE will interpret as B,G,R,A */
/* So use GL_UNSIGNED_INT_8_8_8_8_REV instead to remedy this */ /* So use GL_UNSIGNED_INT_8_8_8_8_REV instead to remedy this */
#define TRANSFER_FORMAT _GL_UNSIGNED_INT_8_8_8_8_REV #define TRANSFER_FORMAT _GL_UNSIGNED_INT_8_8_8_8_REV
#else #else
/* Pixels are stored in memory as B,G,R,A and GL_UNSIGNED_BYTE will interpret as B,G,R,A */ /* Pixels are stored in memory as B,G,R,A and GL_UNSIGNED_BYTE will interpret as B,G,R,A */
/* So fine to just use GL_UNSIGNED_BYTE here */ /* So fine to just use GL_UNSIGNED_BYTE here */
#define TRANSFER_FORMAT GL_UNSIGNED_BYTE #define TRANSFER_FORMAT GL_UNSIGNED_BYTE
#endif #endif
#define uint_to_ptr(raw) ((void*)((cc_uintptr)(raw))) #define uint_to_ptr(raw) ((void*)((cc_uintptr)(raw)))