Fix some more headers for C++
This commit is contained in:
parent
662e1c5cc2
commit
5fea511cce
@ -5,7 +5,7 @@
|
||||
#include <stdalign.h>
|
||||
#endif
|
||||
|
||||
#ifndef alignas
|
||||
#if !defined(alignas) && !defined(__cplusplus)
|
||||
#if defined(HAVE_C11_ALIGNAS)
|
||||
#define alignas _Alignas
|
||||
#else
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
#if !defined(__cplusplus) && !defined(bool)
|
||||
#if !defined(bool) && !defined(__cplusplus)
|
||||
#ifdef HAVE_C99_BOOL
|
||||
#define bool _Bool
|
||||
#else
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <assert.h>
|
||||
|
||||
|
||||
#ifndef static_assert
|
||||
#if !defined(static_assert) && !defined(__cplusplus)
|
||||
#ifdef HAVE_C11_STATIC_ASSERT
|
||||
#define static_assert _Static_assert
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user