Rev 7 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7 | Rev 11 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | */ |
12 | */ |
13 | 13 | ||
14 | #include "system.h" |
14 | #include "system.h" |
15 | #include "game.h" |
15 | #include "game.h" |
16 | 16 | ||
17 | #include <SDL.h> |
17 | #include <SDL2/SDL.h> |
18 | 18 | ||
19 | 19 | ||
20 | /* |
20 | /* |
21 | * main |
21 | * main |
22 | */ |
22 | */ |
23 | #ifdef __APPLE__ |
- | |
24 | int SDL_main (int argc, char **argv) |
- | |
25 | #else |
- | |
26 | int main (int argc, char **argv) |
23 | int main (int argc, char **argv) |
27 | #endif |
- | |
28 | { |
24 | { |
29 | sys_init (argc, argv); |
25 | sys_init (argc, argv); |
30 | game_run (); |
26 | game_run (); |
31 | sys_shutdown (); |
27 | sys_shutdown (); |
- | 28 | ||
32 | return 0; |
29 | return (0); |
33 | } |
30 | } |