Module: Mesa
Branch: main
Commit: e83f13c04ef6a3be281b324532cd5a133439f1a6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e83f13c04ef6a3be281b324532cd5a133439f1a6

Author: Erik Faye-Lund <[email protected]>
Date:   Tue Jun  7 16:35:38 2022 +0200

c99_compat.h: assume c99 support

Reviewed-By: Yonggang Luo <[email protected]>
Reviewed-by: Jesse Natalie <[email protected]>
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)

Reply via email to