mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-27 09:31:03 +00:00
9668d7f539
Right now, all it does is provide the new standard `static_assert()` name.
Fixes: fbf7c38da3
("egl/wayland: use bitset.h for `formats` bit set")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Tested-by: Bhushan Shah <bshah@kde.org>
28 lines
483 B
C
28 lines
483 B
C
/* Copyright 2019 Intel Corporation */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#include "no_extern_c.h"
|
|
|
|
#ifndef _C11_COMPAT_H_
|
|
#define _C11_COMPAT_H_
|
|
|
|
#if defined(__cplusplus)
|
|
/* This is C++ code, not C */
|
|
#elif (__STDC_VERSION__ >= 201112L)
|
|
/* Already C11 */
|
|
#else
|
|
|
|
|
|
/*
|
|
* C11 static_assert() macro
|
|
* assert.h only defines that name for C11 and above
|
|
*/
|
|
#ifndef static_assert
|
|
#define static_assert _Static_assert
|
|
#endif
|
|
|
|
|
|
#endif /* !C++ && !C11 */
|
|
|
|
#endif /* _C11_COMPAT_H_ */
|