Mercurial > sdl-ios-xcode
comparison include/SDL_main.h @ 1356:67114343400d
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 10 Feb 2006 03:19:02 +0000 |
parents | c9b51268668f |
children | d910939febfa |
comparison
equal
deleted
inserted
replaced
1355:4d0f2b2147cf | 1356:67114343400d |
---|---|
20 slouken@libsdl.org | 20 slouken@libsdl.org |
21 */ | 21 */ |
22 | 22 |
23 #ifndef _SDL_main_h | 23 #ifndef _SDL_main_h |
24 #define _SDL_main_h | 24 #define _SDL_main_h |
25 | |
26 #include "SDL_stdinc.h" | |
25 | 27 |
26 /* Redefine main() on Win32 and MacOS so that it is called by winmain.c */ | 28 /* Redefine main() on Win32 and MacOS so that it is called by winmain.c */ |
27 | 29 |
28 #if defined(WIN32) || defined(_WIN32) || \ | 30 #if defined(WIN32) || defined(_WIN32) || \ |
29 (defined(__MWERKS__) && !defined(__BEOS__)) || \ | 31 (defined(__MWERKS__) && !defined(__BEOS__)) || \ |
51 extern C_LINKAGE int SDL_main(int argc, char *argv[]); | 53 extern C_LINKAGE int SDL_main(int argc, char *argv[]); |
52 | 54 |
53 | 55 |
54 /* From the SDL library code -- needed for registering the app on Win32 */ | 56 /* From the SDL library code -- needed for registering the app on Win32 */ |
55 #if defined(WIN32) | 57 #if defined(WIN32) |
56 #include "SDL_types.h" | 58 |
57 #include "begin_code.h" | 59 #include "begin_code.h" |
58 | |
59 #ifdef __cplusplus | 60 #ifdef __cplusplus |
60 extern "C" { | 61 extern "C" { |
61 #endif | 62 #endif |
62 | 63 |
63 /* This should be called from your WinMain() function, if any */ | 64 /* This should be called from your WinMain() function, if any */ |
72 #include "close_code.h" | 73 #include "close_code.h" |
73 #endif | 74 #endif |
74 | 75 |
75 /* From the SDL library code -- needed for registering QuickDraw on MacOS */ | 76 /* From the SDL library code -- needed for registering QuickDraw on MacOS */ |
76 #if defined(macintosh) | 77 #if defined(macintosh) |
78 | |
77 #include "begin_code.h" | 79 #include "begin_code.h" |
78 | |
79 #ifdef __cplusplus | 80 #ifdef __cplusplus |
80 extern "C" { | 81 extern "C" { |
81 #endif | 82 #endif |
82 | 83 |
83 /* Forward declaration so we don't need to include QuickDraw.h */ | 84 /* Forward declaration so we don't need to include QuickDraw.h */ |