diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 211cab34bd..c00d1ba85e 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -504,6 +504,7 @@ static bool hw_render_context_is_vulkan(enum retro_hw_context_type type) } #endif +#if defined(HAVE_OPENGL) static bool hw_render_context_is_gl(enum retro_hw_context_type type) { switch (type) @@ -520,6 +521,7 @@ static bool hw_render_context_is_gl(enum retro_hw_context_type type) return false; } +#endif bool *video_driver_get_threaded(void) { diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 8969a05d7f..1d5d6ba742 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -2585,7 +2585,9 @@ static void cb_generic_download(void *task_data, void *user_data, const char *err) { char output_path[PATH_MAX_LENGTH]; - bool extract = true; +#if defined(HAVE_COMPRESSION) && defined(HAVE_ZLIB) + bool extract = true; +#endif const char *dir_path = NULL; menu_file_transfer_t *transf = (menu_file_transfer_t*)user_data; settings_t *settings = config_get_ptr(); @@ -2609,7 +2611,9 @@ static void cb_generic_download(void *task_data, break; case MENU_ENUM_LABEL_CB_CORE_CONTENT_DOWNLOAD: dir_path = settings->paths.directory_core_assets; +#if defined(HAVE_COMPRESSION) && defined(HAVE_ZLIB) extract = settings->bools.network_buildbot_auto_extract_archive; +#endif break; case MENU_ENUM_LABEL_CB_UPDATE_CORE_INFO_FILES: dir_path = settings->paths.path_libretro_info;