diff --git a/src/webp/types.h b/src/webp/types.h index 568d1f26..9b036e0c 100644 --- a/src/webp/types.h +++ b/src/webp/types.h @@ -18,10 +18,11 @@ #ifndef _MSC_VER #include -#ifdef __STRICT_ANSI__ -#define WEBP_INLINE -#else /* __STRICT_ANSI__ */ +#if defined(__cplusplus) || !defined(__STRICT_ANSI__) || \ + (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) #define WEBP_INLINE inline +#else +#define WEBP_INLINE #endif #else typedef signed char int8_t;