Mercurial > sdl-ios-xcode
comparison include/SDL_main.h @ 1978:542c78b6fb12
MacOS Classic is no longer supported.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 10 Aug 2006 14:54:23 +0000 |
parents | 103c6fec2a60 |
children | 0e7becb566ee |
comparison
equal
deleted
inserted
replaced
1977:754847f19490 | 1978:542c78b6fb12 |
---|---|
27 | 27 |
28 /* Redefine main() on some platforms so that it is called by SDL */ | 28 /* Redefine main() on some platforms so that it is called by SDL */ |
29 | 29 |
30 #if defined(__WIN32__) || \ | 30 #if defined(__WIN32__) || \ |
31 (defined(__MWERKS__) && !defined(__BEOS__)) || \ | 31 (defined(__MWERKS__) && !defined(__BEOS__)) || \ |
32 defined(__MACOS__) || \ | |
33 defined(__SYMBIAN32__) || defined(QWS) | 32 defined(__SYMBIAN32__) || defined(QWS) |
34 | 33 |
35 #ifdef __cplusplus | 34 #ifdef __cplusplus |
36 #define C_LINKAGE "C" | 35 #define C_LINKAGE "C" |
37 #else | 36 #else |
74 /* *INDENT-ON* */ | 73 /* *INDENT-ON* */ |
75 #endif | 74 #endif |
76 #include "close_code.h" | 75 #include "close_code.h" |
77 #endif | 76 #endif |
78 | 77 |
79 /* From the SDL library code -- needed for registering QuickDraw on MacOS */ | |
80 #if defined(__MACOS__) | |
81 | |
82 #include "begin_code.h" | |
83 #ifdef __cplusplus | |
84 /* *INDENT-OFF* */ | |
85 extern "C" { | |
86 /* *INDENT-ON* */ | |
87 #endif | |
88 | |
89 /* Forward declaration so we don't need to include QuickDraw.h */ | |
90 struct QDGlobals; | |
91 | |
92 /* This should be called from your main() function, if any */ | |
93 extern DECLSPEC void SDLCALL SDL_InitQuickDraw(struct QDGlobals *the_qd); | |
94 | |
95 #ifdef __cplusplus | |
96 /* *INDENT-OFF* */ | |
97 } | |
98 /* *INDENT-ON* */ | |
99 #endif | |
100 #include "close_code.h" | |
101 #endif | |
102 | |
103 #endif /* Need to redefine main()? */ | 78 #endif /* Need to redefine main()? */ |
104 | 79 |
105 #endif /* _SDL_main_h */ | 80 #endif /* _SDL_main_h */ |
106 | 81 |
107 /* vi: set ts=4 sw=4 expandtab: */ | 82 /* vi: set ts=4 sw=4 expandtab: */ |