include/SDL_main.h
changeset 1402 d910939febfa
parent 1356 67114343400d
child 1466 3c45c578d480
equal deleted inserted replaced
1401:1819fd069e89 1402:d910939febfa
    25 
    25 
    26 #include "SDL_stdinc.h"
    26 #include "SDL_stdinc.h"
    27 
    27 
    28 /* 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 */
    29 
    29 
    30 #if defined(WIN32) || defined(_WIN32) || \
    30 #if defined(__WIN32__) || \
    31     (defined(__MWERKS__) && !defined(__BEOS__)) || \
    31     (defined(__MWERKS__) && !defined(__BEOS__)) || \
    32     defined(macintosh) || defined(__APPLE__) || \
    32     defined(__MACOS__) || defined(__MACOSX__) || \
    33     defined(__SYMBIAN32__) || defined(QWS)
    33     defined(__SYMBIAN32__) || defined(QWS)
    34 
    34 
    35 #ifdef __cplusplus
    35 #ifdef __cplusplus
    36 #define C_LINKAGE	"C"
    36 #define C_LINKAGE	"C"
    37 #else
    37 #else
    52 /* The prototype for the application's main() function */
    52 /* The prototype for the application's main() function */
    53 extern C_LINKAGE int SDL_main(int argc, char *argv[]);
    53 extern C_LINKAGE int SDL_main(int argc, char *argv[]);
    54 
    54 
    55 
    55 
    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 #if defined(WIN32)
    57 #ifdef __WIN32__
    58 
    58 
    59 #include "begin_code.h"
    59 #include "begin_code.h"
    60 #ifdef __cplusplus
    60 #ifdef __cplusplus
    61 extern "C" {
    61 extern "C" {
    62 #endif
    62 #endif
    72 #endif
    72 #endif
    73 #include "close_code.h"
    73 #include "close_code.h"
    74 #endif
    74 #endif
    75 
    75 
    76 /* From the SDL library code -- needed for registering QuickDraw on MacOS */
    76 /* From the SDL library code -- needed for registering QuickDraw on MacOS */
    77 #if defined(macintosh)
    77 #if defined(__MACOS__)
    78 
    78 
    79 #include "begin_code.h"
    79 #include "begin_code.h"
    80 #ifdef __cplusplus
    80 #ifdef __cplusplus
    81 extern "C" {
    81 extern "C" {
    82 #endif
    82 #endif