From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../glslopt/glsl-optimizer/include/c11_compat.h | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 third_party/rust/glslopt/glsl-optimizer/include/c11_compat.h (limited to 'third_party/rust/glslopt/glsl-optimizer/include/c11_compat.h') diff --git a/third_party/rust/glslopt/glsl-optimizer/include/c11_compat.h b/third_party/rust/glslopt/glsl-optimizer/include/c11_compat.h new file mode 100644 index 0000000000..d35740f47a --- /dev/null +++ b/third_party/rust/glslopt/glsl-optimizer/include/c11_compat.h @@ -0,0 +1,27 @@ +/* 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_ */ -- cgit v1.2.3