include/begin_code.h
changeset 274 051b991765ba
parent 251 b8688cfdc232
child 288 2f5a6062db86
equal deleted inserted replaced
273:72acb06d3721 274:051b991765ba
    39 #  else
    39 #  else
    40 #   define DECLSPEC	__declspec(export)
    40 #   define DECLSPEC	__declspec(export)
    41 #  endif
    41 #  endif
    42 # else
    42 # else
    43 # ifdef WIN32
    43 # ifdef WIN32
    44 #  define DECLSPEC	__declspec(dllexport)
    44 #  ifdef __BORLANDC__
       
    45 #   ifdef BUILD_SDL
       
    46 #    define DECLSPEC __declspec(dllexport)
       
    47 #   else
       
    48 #    define DECLSPEC __declspec(dllimport)
       
    49 #   endif
       
    50 #  else
       
    51 #   define DECLSPEC	__declspec(dllexport)
       
    52 #  endif
    45 # else
    53 # else
    46 #  define DECLSPEC
    54 #  define DECLSPEC
    47 # endif
    55 # endif
    48 # endif
    56 # endif
    49 #endif
    57 #endif
    76 #ifndef SDL_INLINE_OKAY
    84 #ifndef SDL_INLINE_OKAY
    77 #ifdef __GNUC__
    85 #ifdef __GNUC__
    78 #define SDL_INLINE_OKAY
    86 #define SDL_INLINE_OKAY
    79 #else
    87 #else
    80 /* Add any special compiler-specific cases here */
    88 /* Add any special compiler-specific cases here */
    81 #if defined(_MSC_VER)
    89 #if defined(_MSC_VER) || defined(__BORLANDC__)
    82 #define __inline__	__inline
    90 #define __inline__	__inline
    83 #define SDL_INLINE_OKAY
    91 #define SDL_INLINE_OKAY
    84 #else
    92 #else
    85 #if !defined(__MRC__) && !defined(_SGI_SOURCE)
    93 #if !defined(__MRC__) && !defined(_SGI_SOURCE)
    86 #define __inline__ inline
    94 #define __inline__ inline