00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _SDL_main_h
00024 #define _SDL_main_h
00025
00026 #include "SDL_stdinc.h"
00027
00032 #if defined(__WIN32__) || \
00033 (defined(__MWERKS__) && !defined(__BEOS__)) || \
00034 defined(__MACOS__) || defined(__MACOSX__) || \
00035 defined(__SYMBIAN32__) || defined(QWS)
00036
00037 #ifdef __cplusplus
00038 #define C_LINKAGE "C"
00039 #else
00040 #define C_LINKAGE
00041 #endif
00042
00054 #define main SDL_main
00055
00057 extern C_LINKAGE int SDL_main(int argc, char *argv[]);
00058
00059
00062 #ifdef __WIN32__
00063
00064 #include "begin_code.h"
00065 #ifdef __cplusplus
00066 extern "C" {
00067 #endif
00068
00070 extern DECLSPEC void SDLCALL SDL_SetModuleHandle(void *hInst);
00072 extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style, void *hInst);
00074 extern DECLSPEC void SDLCALL SDL_UnregisterApp(void);
00075 #ifdef __cplusplus
00076 }
00077 #endif
00078 #include "close_code.h"
00079 #endif
00080
00084 #if defined(__MACOS__)
00085
00086 #include "begin_code.h"
00087 #ifdef __cplusplus
00088 extern "C" {
00089 #endif
00090
00092 struct QDGlobals;
00093
00095 extern DECLSPEC void SDLCALL SDL_InitQuickDraw(struct QDGlobals *the_qd);
00096
00097 #ifdef __cplusplus
00098 }
00099 #endif
00100 #include "close_code.h"
00101 #endif
00102
00104 #endif
00105
00106 #endif