Define RAPIDJSON_FORCEINLINE for gcc

Performance boost a lot!
This commit is contained in:
Milo Yip 2014-07-26 23:23:52 +08:00
parent 58e0fb89b2
commit b99a515ef2

View File

@ -41,6 +41,8 @@
#ifndef RAPIDJSON_FORCEINLINE
#ifdef _MSC_VER
#define RAPIDJSON_FORCEINLINE __forceinline
#elif defined(__GNUC__) && __GNUC__ >= 4
#define RAPIDJSON_FORCEINLINE __attribute__((always_inline))
#else
#define RAPIDJSON_FORCEINLINE
#endif