mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-05 18:57:27 +00:00
8b43d5a488
disabled for macOS onwards modified version without APSL licensed files
19 lines
531 B
C
19 lines
531 B
C
|
|
/* Include the primary system assert.h */
|
|
#include_next <assert.h>
|
|
|
|
|
|
/* now add the missing definition of static_assert for C11 code, added to the 10.11 SDK. */
|
|
/* if a newer assert.h header has already done this in a modern SDK, then */
|
|
/* _ASSERT_H_ will be defined and will block this */
|
|
|
|
#ifndef _ASSERT_H_
|
|
#define _ASSERT_H_
|
|
|
|
#ifndef __cplusplus
|
|
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
#define static_assert _Static_assert
|
|
#endif /* __STDC_VERSION__ */
|
|
#endif /* !__cplusplus */
|
|
|
|
#endif /* _ASSERT_H_ */
|