include/begin_code.h
changeset 337 9154ec9ca3d2
parent 297 f6ffac90895c
child 346 a18ea34d9efe
equal deleted inserted replaced
336:745873ea091f 337:9154ec9ca3d2
    29 #ifdef _begin_code_h
    29 #ifdef _begin_code_h
    30 #error Nested inclusion of begin_code.h
    30 #error Nested inclusion of begin_code.h
    31 #endif
    31 #endif
    32 #define _begin_code_h
    32 #define _begin_code_h
    33 
    33 
       
    34 /* Make sure the correct platform symbols are defined */
       
    35 #if !defined(WIN32) && defined(_WIN32)
       
    36 #define WIN32
       
    37 #endif /* Windows */
       
    38 
    34 /* Some compilers use a special export keyword */
    39 /* Some compilers use a special export keyword */
    35 #ifndef DECLSPEC
    40 #ifndef DECLSPEC
    36 # ifdef __BEOS__
    41 # ifdef __BEOS__
    37 #  if defined(__GNUC__)
    42 #  if defined(__GNUC__)
    38 #   define DECLSPEC	__declspec(dllexport)
    43 #   define DECLSPEC	__declspec(dllexport)
    53 # else
    58 # else
    54 #  define DECLSPEC
    59 #  define DECLSPEC
    55 # endif
    60 # endif
    56 # endif
    61 # endif
    57 #endif
    62 #endif
       
    63 
       
    64 /* By default SDL uses the C calling convention */
       
    65 #ifndef SDLCALL
       
    66 #ifdef WIN32
       
    67 #define SDLCALL __cdecl
       
    68 #else
       
    69 #define SDLCALL
       
    70 #endif
       
    71 #endif /* SDLCALL */
    58 
    72 
    59 /* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */
    73 /* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */
    60 #ifdef __SYMBIAN32__ 
    74 #ifdef __SYMBIAN32__ 
    61 #undef DECLSPEC
    75 #undef DECLSPEC
    62 #define DECLSPEC
    76 #define DECLSPEC