include: drop c11_compat.h

We now require C11, and C++ supports static_assert just fine, which is
the only thing this header ever added support for. So let's get rid of
this needless header.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16812>
This commit is contained in:
Erik Faye-Lund 2022-06-01 13:38:39 +02:00 committed by Marge Bot
parent 18246ed06a
commit df2dd474c7
4 changed files with 0 additions and 32 deletions

View File

@ -1,27 +0,0 @@
/* 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_ */

View File

@ -30,7 +30,6 @@
#include <stdbool.h> #include <stdbool.h>
#include <assert.h> #include <assert.h>
#include "c11_compat.h"
#include "ac_rgp.h" #include "ac_rgp.h"
struct radeon_cmdbuf; struct radeon_cmdbuf;

View File

@ -29,7 +29,6 @@
#include <string.h> #include <string.h>
#include <vulkan/vulkan.h> #include <vulkan/vulkan.h>
#include "c11_compat.h"
#include "hwdef/rogue_hw_defs.h" #include "hwdef/rogue_hw_defs.h"
#include "hwdef/rogue_hw_utils.h" #include "hwdef/rogue_hw_utils.h"
#include "pvr_bo.h" #include "pvr_bo.h"

View File

@ -26,9 +26,6 @@
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include "c11_compat.h"
#include <stdint.h> #include <stdint.h>
/* Compute the size of an array */ /* Compute the size of an array */