build fix for platforms without threads

This commit is contained in:
radius 2017-07-24 21:24:22 -05:00
parent 84e0251a86
commit b64fe2adc2

@ -2289,7 +2289,9 @@ bool command_event(enum event_command cmd, void *data)
/* Disable rewind & sram autosave if it was enabled /* Disable rewind & sram autosave if it was enabled
TODO: Add a setting for these tweaks */ TODO: Add a setting for these tweaks */
state_manager_event_deinit(); state_manager_event_deinit();
#ifdef HAVE_THREADS
autosave_deinit(); autosave_deinit();
#endif
} }
break; break;
/* init netplay via lobby when content is loaded */ /* init netplay via lobby when content is loaded */
@ -2320,7 +2322,9 @@ bool command_event(enum event_command cmd, void *data)
/* Disable rewind if it was enabled /* Disable rewind if it was enabled
TODO: Add a setting for these tweaks */ TODO: Add a setting for these tweaks */
state_manager_event_deinit(); state_manager_event_deinit();
#ifdef HAVE_THREADS
autosave_deinit(); autosave_deinit();
#endif
} }
break; break;
/* init netplay via lobby when content is not loaded */ /* init netplay via lobby when content is not loaded */
@ -2351,7 +2355,9 @@ bool command_event(enum event_command cmd, void *data)
/* Disable rewind if it was enabled /* Disable rewind if it was enabled
TODO: Add a setting for these tweaks */ TODO: Add a setting for these tweaks */
state_manager_event_deinit(); state_manager_event_deinit();
#ifdef HAVE_THREADS
autosave_deinit(); autosave_deinit();
#endif
} }
break; break;
case CMD_EVENT_NETPLAY_FLIP_PLAYERS: case CMD_EVENT_NETPLAY_FLIP_PLAYERS: