Mesa (main): c99_compat.h: assume c99 support
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 14 15:50:07 UTC 2022
Module: Mesa
Branch: main
Commit: e83f13c04ef6a3be281b324532cd5a133439f1a6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e83f13c04ef6a3be281b324532cd5a133439f1a6
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Tue Jun 7 16:35:38 2022 +0200
c99_compat.h: assume c99 support
Reviewed-By: Yonggang Luo <luoyonggang at gmail.com>
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16908>
---
include/c99_compat.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/c99_compat.h b/include/c99_compat.h
index ae9e3235c95..83895422226 100644
--- a/include/c99_compat.h
+++ b/include/c99_compat.h
@@ -62,8 +62,8 @@
* - http://cellperformance.beyond3d.com/articles/2006/05/demystifying-the-restrict-keyword.html
*/
#ifndef restrict
-# if (__STDC_VERSION__ >= 199901L) && !defined(__cplusplus)
- /* C99 */
+# ifndef __cplusplus
+ /* Use C99 restrict keyword */
# elif defined(__GNUC__)
# define restrict __restrict__
# elif defined(_MSC_VER)
More information about the mesa-commit
mailing list