1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-24 13:38:29 +02:00

Fix compiler warnings on Android

This commit is contained in:
leo60228 2023-09-21 17:49:01 -04:00 committed by Misa Elizabeth Kai
parent 246a91c45e
commit d6a43fad90
3 changed files with 13 additions and 1 deletions

View File

@ -274,6 +274,11 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(VVVVVV PRIVATE -Wno-c++11-long-long)
endif()
# Disable warnings about flexible array members in C++ (from including FAudio)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(VVVVVV PRIVATE -Wno-c99-extensions)
endif()
if(MSVC)
# MSVC doesn't have /std:c99 or /std:c++98 switches!

View File

@ -76,6 +76,7 @@ static const PHYSFS_Allocator allocator = {
SDL_free
};
#ifndef __ANDROID__
static bool mount_pre_datazip(
char* out_path,
const char* real_dirname,
@ -174,6 +175,7 @@ static bool mount_pre_datazip(
return dir_found;
}
#endif
int FILESYSTEM_init(char *argvZero, char* baseDir, char *assetsPath, char* langDir, char* fontsDir)
{

View File

@ -24,8 +24,13 @@
#define Color_BOLD_RED COLOR("\x1b[1;31m")
#define Color_BOLD_GRAY COLOR("\x1b[1;90m")
static int output_enabled = 1;
#ifdef __ANDROID__
const int color_supported = 0;
#else
static int color_supported = 0;
#endif
static int output_enabled = 1;
static int color_enabled = 1;
static int debug_enabled = 0;
static int info_enabled = 1;