mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-26 21:35:03 +00:00
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:
@@ -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__)
|
||||
|
||||
Reference in New Issue
Block a user