Main: Fix host-based build again

This commit is contained in:
simon.kagstrom 2011-06-03 06:08:57 +00:00
parent 8085fee39c
commit 43c1930f03

View File

@ -30,10 +30,9 @@
#include "gui/gui.hh" #include "gui/gui.hh"
#include "data_store.hh" #include "data_store.hh"
#include "utils.hh" #include "utils.hh"
#include <fat.h>
#if defined(GEKKO) #if defined(GEKKO)
#include "fat.h" #include <fat.h>
#endif #endif
@ -110,10 +109,12 @@ void Frodo::load_rom_files()
extern "C" int main(int argc, char **argv) extern "C" int main(int argc, char **argv)
{ {
DIR_ITER *dir_tmp;
timeval tv; timeval tv;
gettimeofday(&tv, NULL); gettimeofday(&tv, NULL);
srand(tv.tv_usec); srand(tv.tv_usec);
#if defined(GEKKO)
DIR_ITER *dir_tmp;
#endif
// Init SDL // Init SDL
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER | SDL_INIT_JOYSTICK) < 0) { if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER | SDL_INIT_JOYSTICK) < 0) {