From e83f13c04ef6a3be281b324532cd5a133439f1a6 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 7 Jun 2022 16:35:38 +0200 Subject: [PATCH] c99_compat.h: assume c99 support Reviewed-By: Yonggang Luo Reviewed-by: Jesse Natalie Part-of: --- 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)