Use __forceinline for JEMALLOC_ALWAYS_INLINE on msvc

This commit is contained in:
Leonardo Santagada 2019-10-23 15:00:49 +02:00 committed by Qi Wang
parent 836d7a7e69
commit c462753cc8

View File

@ -4,8 +4,12 @@
#ifdef JEMALLOC_DEBUG #ifdef JEMALLOC_DEBUG
# define JEMALLOC_ALWAYS_INLINE static inline # define JEMALLOC_ALWAYS_INLINE static inline
#else #else
# ifdef _MSC_VER
# define JEMALLOC_ALWAYS_INLINE static __forceinline
# else
# define JEMALLOC_ALWAYS_INLINE JEMALLOC_ATTR(always_inline) static inline # define JEMALLOC_ALWAYS_INLINE JEMALLOC_ATTR(always_inline) static inline
# endif # endif
#endif
#ifdef _MSC_VER #ifdef _MSC_VER
# define inline _inline # define inline _inline
#endif #endif