Commit 880fec5d086cb528b6fdb5948ccacbc1dcce5cfd

Authored by malc
1 parent 7e000c2e

Unbreak SDL on Mac OS X

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6620 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 7 additions and 0 deletions
... ... @@ -137,6 +137,13 @@
137 137 #ifdef CONFIG_SDL
138 138 #ifdef __APPLE__
139 139 #include <SDL/SDL.h>
  140 +int qemu_main(int argc, char **argv, char **envp);
  141 +int main(int argc, char **argv)
  142 +{
  143 + qemu_main(argc, argv, NULL);
  144 +}
  145 +#undef main
  146 +#define main qemu_main
140 147 #endif
141 148 #endif /* CONFIG_SDL */
142 149  
... ...