diff --git a/project/lib/overrides/jpeg/jconfigint.h b/project/lib/overrides/jpeg/jconfigint.h index 98f5895a5..49bc2bc63 100644 --- a/project/lib/overrides/jpeg/jconfigint.h +++ b/project/lib/overrides/jpeg/jconfigint.h @@ -5,7 +5,13 @@ #undef inline /* How to obtain function inlining. */ -#define INLINE __inline__ __attribute__((always_inline)) +#if defined(__has_attribute) +#define INLINE __inline__ __attribute__((always_inline)) +#elif defined(_MSC_VER) +#define INLINE __forceinline +#else +#define INLINE +#endif /* How to obtain thread-local storage */ #define THREAD_LOCAL __thread