comparison include/SDL_main.h @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents 3c45c578d480
children 103c6fec2a60
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
56 /* 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 */
57 #ifdef __WIN32__ 57 #ifdef __WIN32__
58 58
59 #include "begin_code.h" 59 #include "begin_code.h"
60 #ifdef __cplusplus 60 #ifdef __cplusplus
61 /* *INDENT-OFF* */
61 extern "C" { 62 extern "C" {
63 /* *INDENT-ON* */
62 #endif 64 #endif
63 65
64 /* This should be called from your WinMain() function, if any */ 66 /* This can be called to set the application class at startup */
65 extern DECLSPEC void SDLCALL SDL_SetModuleHandle(void *hInst); 67 extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style,
66 /* This can also be called, but is no longer necessary */ 68 void *hInst);
67 extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style, void *hInst);
68 /* This can also be called, but is no longer necessary (SDL_Quit calls it) */
69 extern DECLSPEC void SDLCALL SDL_UnregisterApp(void); 69 extern DECLSPEC void SDLCALL SDL_UnregisterApp(void);
70
70 #ifdef __cplusplus 71 #ifdef __cplusplus
72 /* *INDENT-OFF* */
71 } 73 }
74 /* *INDENT-ON* */
72 #endif 75 #endif
73 #include "close_code.h" 76 #include "close_code.h"
74 #endif 77 #endif
75 78
76 /* From the SDL library code -- needed for registering QuickDraw on MacOS */ 79 /* From the SDL library code -- needed for registering QuickDraw on MacOS */
77 #if defined(__MACOS__) 80 #if defined(__MACOS__)
78 81
79 #include "begin_code.h" 82 #include "begin_code.h"
80 #ifdef __cplusplus 83 #ifdef __cplusplus
84 /* *INDENT-OFF* */
81 extern "C" { 85 extern "C" {
86 /* *INDENT-ON* */
82 #endif 87 #endif
83 88
84 /* Forward declaration so we don't need to include QuickDraw.h */ 89 /* Forward declaration so we don't need to include QuickDraw.h */
85 struct QDGlobals; 90 struct QDGlobals;
86 91
87 /* This should be called from your main() function, if any */ 92 /* This should be called from your main() function, if any */
88 extern DECLSPEC void SDLCALL SDL_InitQuickDraw(struct QDGlobals *the_qd); 93 extern DECLSPEC void SDLCALL SDL_InitQuickDraw(struct QDGlobals *the_qd);
89 94
90 #ifdef __cplusplus 95 #ifdef __cplusplus
96 /* *INDENT-OFF* */
91 } 97 }
98 /* *INDENT-ON* */
92 #endif 99 #endif
93 #include "close_code.h" 100 #include "close_code.h"
94 #endif 101 #endif
95 102
96 #endif /* Need to redefine main()? */ 103 #endif /* Need to redefine main()? */
97 104
98 #endif /* _SDL_main_h */ 105 #endif /* _SDL_main_h */
106
107 /* vi: set ts=4 sw=4 expandtab: */