Fix some more headers for C++

This commit is contained in:
Chris Robinson 2018-10-29 11:51:41 -07:00
parent 662e1c5cc2
commit 5fea511cce
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
#include <stdalign.h>
#endif
#ifndef alignas
#if !defined(alignas) && !defined(__cplusplus)
#if defined(HAVE_C11_ALIGNAS)
#define alignas _Alignas
#else

View File

@ -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

View File

@ -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