include/begin_code.h
changeset 10616 d17dd08640a4
parent 9998 f67cf37e9cd4
child 10737 3406a0f8b041
equal deleted inserted replaced
10615:f85f1e6d857c 10616:d17dd08640a4
   132 #else
   132 #else
   133 #define SDL_FORCE_INLINE static SDL_INLINE
   133 #define SDL_FORCE_INLINE static SDL_INLINE
   134 #endif
   134 #endif
   135 #endif /* SDL_FORCE_INLINE not defined */
   135 #endif /* SDL_FORCE_INLINE not defined */
   136 
   136 
       
   137 #ifndef SDL_NORETURN
       
   138 #if defined(__GNUC__)
       
   139 #define SDL_NORETURN __attribute__((noreturn))
       
   140 #elif defined(_MSC_VER)
       
   141 #define SDL_NORETURN __declspec(noreturn)
       
   142 #else
       
   143 #define SDL_NORETURN
       
   144 #endif
       
   145 #endif /* SDL_NORETURN not defined */
       
   146 
   137 /* Apparently this is needed by several Windows compilers */
   147 /* Apparently this is needed by several Windows compilers */
   138 #if !defined(__MACH__)
   148 #if !defined(__MACH__)
   139 #ifndef NULL
   149 #ifndef NULL
   140 #ifdef __cplusplus
   150 #ifdef __cplusplus
   141 #define NULL 0
   151 #define NULL 0