util: fix comments about polyfills
This commit is contained in:
parent
279315afcd
commit
7c52fee8be
@ -26,13 +26,13 @@ typedef intptr_t ssize_t;
|
|||||||
#define unused_fn /* nothing */
|
#define unused_fn /* nothing */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Polyfill `inline` for older versions of msvc (up to Visual Studio 2013) */
|
||||||
#if defined(_MSC_VER) && _MSC_VER < 1900
|
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||||
/* Polyfill `inline` for msvc 12 (Visual Studio 2013) */
|
|
||||||
#define inline __inline
|
#define inline __inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(__clang__) || defined(__GNUC__)) && !defined(static_assert)
|
|
||||||
/* Polyfill `static_assert` for some versions of clang and gcc. */
|
/* Polyfill `static_assert` for some versions of clang and gcc. */
|
||||||
|
#if (defined(__clang__) || defined(__GNUC__)) && !defined(static_assert)
|
||||||
#define static_assert(condition, message) typedef __attribute__( \
|
#define static_assert(condition, message) typedef __attribute__( \
|
||||||
(__unused__)) int __static_assert_##__LINE__[(condition) ? 1 : -1];
|
(__unused__)) int __static_assert_##__LINE__[(condition) ? 1 : -1];
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user