From cb602c190d832b5646e931a41d29e90880d293ea Mon Sep 17 00:00:00 2001 From: orbea Date: Sun, 20 Jan 2019 13:59:40 -0800 Subject: [PATCH] Some C89_BUILD fixes. --- input/drivers_joypad/linuxraw_joypad.c | 1 + libretro-common/vfs/vfs_implementation.c | 2 +- qb/config.params.sh | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/input/drivers_joypad/linuxraw_joypad.c b/input/drivers_joypad/linuxraw_joypad.c index 8a209aa5a7..09237b88ec 100644 --- a/input/drivers_joypad/linuxraw_joypad.c +++ b/input/drivers_joypad/linuxraw_joypad.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include diff --git a/libretro-common/vfs/vfs_implementation.c b/libretro-common/vfs/vfs_implementation.c index 4d5098c758..23f385dac4 100644 --- a/libretro-common/vfs/vfs_implementation.c +++ b/libretro-common/vfs/vfs_implementation.c @@ -1161,6 +1161,7 @@ bool retro_vfs_dirent_is_dir_impl(libretro_vfs_implementation_dir *rdir) return false; #else struct stat buf; + char path[PATH_MAX_LENGTH]; #if defined(DT_DIR) const struct dirent *entry = (const struct dirent*)rdir->entry; if (entry->d_type == DT_DIR) @@ -1170,7 +1171,6 @@ bool retro_vfs_dirent_is_dir_impl(libretro_vfs_implementation_dir *rdir) return false; #endif /* dirent struct doesn't have d_type, do it the slow way ... */ - char path[PATH_MAX_LENGTH]; path[0] = '\0'; fill_pathname_join(path, rdir->orig_path, retro_vfs_dirent_get_name_impl(rdir), sizeof(path)); if (stat(path, &buf) < 0) diff --git a/qb/config.params.sh b/qb/config.params.sh index 8dfa6716c4..524b012bec 100644 --- a/qb/config.params.sh +++ b/qb/config.params.sh @@ -117,8 +117,8 @@ HAVE_QT=auto # Qt companion support C89_QT=no HAVE_XSHM=no # XShm video driver support HAVE_CHEEVOS=yes # Retro Achievements -HAVE_NEW_CHEEVOS=no # use rcheevos to process RetroAchievements -C89_CHEEVOS=no +HAVE_NEW_CHEEVOS=no # Use rcheevos to process RetroAchievements +C89_NEW_CHEEVOS=no HAVE_LUA=no # Lua support (for Retro Achievements) HAVE_DISCORD=yes # Discord Integration C89_DISCORD=no