include: drop c11_compat.h
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 1 Jun 2022 11:38:39 +0000 (13:38 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 2 Jun 2022 13:09:16 +0000 (13:09 +0000)
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>

include/c11_compat.h [deleted file]
src/amd/common/ac_sqtt.h
src/imagination/vulkan/pvr_cmd_buffer.c
src/util/macros.h

diff --git a/include/c11_compat.h b/include/c11_compat.h
deleted file mode 100644 (file)
index d35740f..0000000
+++ /dev/null
@@ -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_ */
index 55130aa..05798b7 100644 (file)
@@ -30,7 +30,6 @@
 #include <stdbool.h>
 
 #include <assert.h>
-#include "c11_compat.h"
 #include "ac_rgp.h"
 
 struct radeon_cmdbuf;
index 0afd463..4fe224f 100644 (file)
@@ -29,7 +29,6 @@
 #include <string.h>
 #include <vulkan/vulkan.h>
 
-#include "c11_compat.h"
 #include "hwdef/rogue_hw_defs.h"
 #include "hwdef/rogue_hw_utils.h"
 #include "pvr_bo.h"
index a5dc484..dd8af86 100644 (file)
@@ -26,9 +26,6 @@
 
 #include <stdio.h>
 #include <assert.h>
-
-#include "c11_compat.h"
-
 #include <stdint.h>
 
 /* Compute the size of an array */