Use static inline in Visual C++.

This commit is contained in:
Wedge009 2015-08-17 06:22:53 +10:00
parent a88e777e05
commit bec01d798a
2 changed files with 12 additions and 4 deletions

View File

@ -2,10 +2,14 @@
See a particular renderer's *.c file for specifics. */
// Visual C does not support static inline
// static inline only supported in Visual C++ from version 2015 but can use static __inline instead for older versions
#ifndef static_inline
#ifdef _MSC_VER
#define static_inline static
#if _MSC_VER < 1900
#define static_inline static __inline
#else
#define static_inline static inline
#endif
#else
#define static_inline static inline
#endif

View File

@ -12,10 +12,14 @@
#endif
// Visual C does not support static inline
// static inline only supported in Visual C++ from version 2015 but can use static __inline instead for older versions
#ifndef static_inline
#ifdef _MSC_VER
#define static_inline static
#if _MSC_VER < 1900
#define static_inline static __inline
#else
#define static_inline static inline
#endif
#else
#define static_inline static inline
#endif