diff --git a/src/text.c b/src/text.c index c26c1b83..5925f64c 100644 --- a/src/text.c +++ b/src/text.c @@ -54,12 +54,12 @@ #endif #include // Required for: malloc(), free() -#include // Required for: FILE, fopen(), fclose(), fgets() +#include // Required for: vsprintf() #include // Required for: strcmp(), strstr(), strcpy(), strncpy(), strcat(), strncat(), sscanf() #include // Required for: va_list, va_start(), vsprintf(), va_end() [Used in TextFormat()] #include // Requried for: toupper(), tolower() [Used in TextToUpper(), TextToLower()] -#include "utils.h" // Required for: fopen() Android mapping +#include "utils.h" // Required for: LoadFileText() #if defined(SUPPORT_FILEFORMAT_TTF) #define STB_RECT_PACK_IMPLEMENTATION @@ -1691,8 +1691,8 @@ static Font LoadBMFont(const char *fileName) int base = 0; // Useless data - unsigned char *fileText = LoadFileText(fileName); - unsigned char *fileTextPtr = fileText; + char *fileText = LoadFileText(fileName); + char *fileTextPtr = fileText; // NOTE: We skip first line, it contains no useful information int lineBytes = GetLine(fileTextPtr, buffer, MAX_BUFFER_SIZE);