mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 18:31:32 +00:00
Use static inline in Visual C++.
This commit is contained in:
parent
a88e777e05
commit
bec01d798a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user