Allow use of inline keyword in c++/c99 mode.

This commit is contained in:
Zoltan Szabadka 2014-10-28 14:43:15 +01:00
parent 37aa5e05c0
commit dd6237b0e8

View File

@ -22,10 +22,11 @@
#ifndef _MSC_VER
#include <inttypes.h>
#ifdef __STRICT_ANSI__
#define BROTLI_INLINE
#else /* __STRICT_ANSI__ */
#if defined(__cplusplus) || !defined(__STRICT_ANSI__) \
|| __STDC_VERSION__ >= 199901L
#define BROTLI_INLINE inline
#else
#define BROTLI_INLINE
#endif
#else
typedef signed char int8_t;