The Mac OS X Cocoa video driver is under construction...
Note that SDLmain is no longer necessary on Mac OS X. :)
2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2006 Sam Lantinga
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 #include "SDL_stdinc.h"
28 /* Redefine main() on some platforms so that it is called by SDL */
30 #if defined(__WIN32__) || \
31 (defined(__MWERKS__) && !defined(__BEOS__)) || \
32 defined(__MACOS__) || \
33 defined(__SYMBIAN32__) || defined(QWS)
39 #endif /* __cplusplus */
41 /* The application's main() function must be called with C linkage,
42 and should be declared like this:
46 int main(int argc, char *argv[])
52 /* The prototype for the application's main() function */
53 extern C_LINKAGE int SDL_main(int argc, char *argv[]);
56 /* From the SDL library code -- needed for registering the app on Win32 */
59 #include "begin_code.h"
66 /* This can be called to set the application class at startup */
67 extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style,
69 extern DECLSPEC void SDLCALL SDL_UnregisterApp(void);
76 #include "close_code.h"
79 /* From the SDL library code -- needed for registering QuickDraw on MacOS */
80 #if defined(__MACOS__)
82 #include "begin_code.h"
89 /* Forward declaration so we don't need to include QuickDraw.h */
92 /* This should be called from your main() function, if any */
93 extern DECLSPEC void SDLCALL SDL_InitQuickDraw(struct QDGlobals *the_qd);
100 #include "close_code.h"
103 #endif /* Need to redefine main()? */
105 #endif /* _SDL_main_h */
107 /* vi: set ts=4 sw=4 expandtab: */