Commit 18055f34 authored by David Reid's avatar David Reid

voclib: Fix a compilation error.

parent f6bae251
...@@ -151,13 +151,23 @@ extern "C" { ...@@ -151,13 +151,23 @@ extern "C" {
#include <assert.h> #include <assert.h>
#ifdef _MSC_VER #ifdef _MSC_VER
#define VOCLIB_INLINE __forceinline #define VOCLIB_INLINE __forceinline
#elif defined(__GNUC__)
#if defined(__STRICT_ANSI__)
#define VOCLIB_GNUC_INLINE_HINT __inline__
#else
#define VOCLIB_GNUC_INLINE_HINT inline
#endif
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) || defined(__clang__)
#define VOCLIB_INLINE VOCLIB_GNUC_INLINE_HINT __attribute__((always_inline))
#else
#define VOCLIB_INLINE VOCLIB_GNUC_INLINE_HINT
#endif
#elif defined(__WATCOMC__)
#define VOCLIB_INLINE __inline
#else #else
#ifdef __GNUC__ #define VOCLIB_INLINE
#define VOCLIB_INLINE inline __attribute__((always_inline))
#else
#define VOCLIB_INLINE inline
#endif
#endif #endif
/* Filters /* Filters
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment