diff --git a/similar/main/menu.cpp b/similar/main/menu.cpp index 58551ac49..a8375c9c7 100644 --- a/similar/main/menu.cpp +++ b/similar/main/menu.cpp @@ -1587,13 +1587,13 @@ static inline void nm_set_item_browse(newmenu_item *ni, const char *text) int opt_sm_digivol = -1, opt_sm_musicvol = -1, opt_sm_revstereo = -1, opt_sm_mtype0 = -1, opt_sm_mtype1 = -1, opt_sm_mtype2 = -1, opt_sm_mtype3 = -1, opt_sm_redbook_playorder = -1, opt_sm_mtype3_lmpath = -1, opt_sm_mtype3_lmplayorder1 = -1, opt_sm_mtype3_lmplayorder2 = -1, opt_sm_mtype3_lmplayorder3 = -1, opt_sm_cm_mtype3_file1_b = -1, opt_sm_cm_mtype3_file1 = -1, opt_sm_cm_mtype3_file2_b = -1, opt_sm_cm_mtype3_file2 = -1, opt_sm_cm_mtype3_file3_b = -1, opt_sm_cm_mtype3_file3 = -1, opt_sm_cm_mtype3_file4_b = -1, opt_sm_cm_mtype3_file4 = -1, opt_sm_cm_mtype3_file5_b = -1, opt_sm_cm_mtype3_file5 = -1; +#ifdef USE_SDLMIXER static int get_absolute_path(char *full_path, const char *rel_path) { PHYSFSX_getRealPath(rel_path, full_path); return 1; } -#ifdef USE_SDLMIXER #define SELECT_SONG(t, s) select_file_recursive(t, GameCfg.CMMiscMusic[s], jukebox_exts, 0, get_absolute_path, GameCfg.CMMiscMusic[s]) #endif diff --git a/similar/main/songs.cpp b/similar/main/songs.cpp index 853bde36f..c7991cdef 100644 --- a/similar/main/songs.cpp +++ b/similar/main/songs.cpp @@ -42,6 +42,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #include "timer.h" #include "u_mem.h" #include "args.h" +#include "physfsx.h" int Songs_initialized = 0; static int Song_playing = -1; // -1 if no song playing, else the Descent song number