diff --git a/libretro-common/include/retro_inline.h b/libretro-common/include/retro_inline.h index 1adc40bec4..8535d84806 100644 --- a/libretro-common/include/retro_inline.h +++ b/libretro-common/include/retro_inline.h @@ -23,18 +23,17 @@ #ifndef __LIBRETRO_SDK_INLINE_H #define __LIBRETRO_SDK_INLINE_H +#ifndef INLINE + #if !defined(__cplusplus) && defined(_WIN32) - -#ifndef INLINE #define INLINE _inline -#endif - -#else - -#ifndef INLINE +#elif defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L #define INLINE inline +#elif defined(__GNUC__) +#define INLINE __inline__ +#else +#define INLINE #endif #endif - #endif