include/begin_code.h
changeset 337 9154ec9ca3d2
parent 297 f6ffac90895c
child 346 a18ea34d9efe
     1.1 --- a/include/begin_code.h	Wed Apr 10 17:12:32 2002 +0000
     1.2 +++ b/include/begin_code.h	Thu Apr 11 14:35:16 2002 +0000
     1.3 @@ -31,6 +31,11 @@
     1.4  #endif
     1.5  #define _begin_code_h
     1.6  
     1.7 +/* Make sure the correct platform symbols are defined */
     1.8 +#if !defined(WIN32) && defined(_WIN32)
     1.9 +#define WIN32
    1.10 +#endif /* Windows */
    1.11 +
    1.12  /* Some compilers use a special export keyword */
    1.13  #ifndef DECLSPEC
    1.14  # ifdef __BEOS__
    1.15 @@ -56,6 +61,15 @@
    1.16  # endif
    1.17  #endif
    1.18  
    1.19 +/* By default SDL uses the C calling convention */
    1.20 +#ifndef SDLCALL
    1.21 +#ifdef WIN32
    1.22 +#define SDLCALL __cdecl
    1.23 +#else
    1.24 +#define SDLCALL
    1.25 +#endif
    1.26 +#endif /* SDLCALL */
    1.27 +
    1.28  /* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */
    1.29  #ifdef __SYMBIAN32__ 
    1.30  #undef DECLSPEC