ANDROID: Fix broken LoadMusicStream due to missing fopen redirect in raudio.c (#5589)

* ANDROID: Fix broken LoadMusicStream due to missing fopen macro override in raudio

* ANDROID: Add missing forward declaration before fopen macro override in raudio
This commit is contained in:
ghera
2026-02-26 00:44:00 +01:00
committed by GitHub
parent b57526d71e
commit 304e489edd

View File

@@ -180,6 +180,11 @@ typedef struct tagBITMAPINFOHEADER {
#include <stdio.h> // Required for: FILE, fopen(), fclose(), fread()
#include <string.h> // Required for: strcmp() [Used in IsFileExtension(), LoadWaveFromMemory(), LoadMusicStreamFromMemory()]
#if defined(PLATFORM_ANDROID)
FILE *android_fopen(const char *fileName, const char *mode);
#define fopen(name, mode) android_fopen(name, mode)
#endif
#if defined(RAUDIO_STANDALONE)
#ifndef TRACELOG
#define TRACELOG(level, ...) printf(__VA_ARGS__)