Fix GCC Warning

This commit is contained in:
Hassan DRAGA 2024-07-09 20:59:24 -04:00
parent 633a96c54b
commit 3f683ea036
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ bool virtual_file_system(const char* path, const unsigned char** file, int* leng
return false;
}
void* vfs(const char* path, int* length) {
const void* vfs(const char* path, int* length) {
const unsigned char* file_data;
int file_length;

View File

@ -63,7 +63,7 @@ def generate_vfs_header(directory, output_header):
header.write(' return false;\n')
header.write('}\n\n')
header.write('void* vfs(const char* path, int* length) {\n')
header.write('const void* vfs(const char* path, int* length) {\n')
header.write(' const unsigned char* file_data;\n')
header.write(' int file_length;\n\n')