include/begin_code.h
changeset 10616 d17dd08640a4
parent 9998 f67cf37e9cd4
child 10737 3406a0f8b041
     1.1 --- a/include/begin_code.h	Tue Nov 15 01:24:58 2016 -0800
     1.2 +++ b/include/begin_code.h	Tue Nov 15 01:30:08 2016 -0800
     1.3 @@ -134,6 +134,16 @@
     1.4  #endif
     1.5  #endif /* SDL_FORCE_INLINE not defined */
     1.6  
     1.7 +#ifndef SDL_NORETURN
     1.8 +#if defined(__GNUC__)
     1.9 +#define SDL_NORETURN __attribute__((noreturn))
    1.10 +#elif defined(_MSC_VER)
    1.11 +#define SDL_NORETURN __declspec(noreturn)
    1.12 +#else
    1.13 +#define SDL_NORETURN
    1.14 +#endif
    1.15 +#endif /* SDL_NORETURN not defined */
    1.16 +
    1.17  /* Apparently this is needed by several Windows compilers */
    1.18  #if !defined(__MACH__)
    1.19  #ifndef NULL