From e28e8ea9027d5e19b4f54db628921c2f0e63127f Mon Sep 17 00:00:00 2001
From: Detlef Riekenberg <wine.dev@web.de>
Date: Sun, 4 Sep 2022 01:57:25 +0200
Subject: [PATCH] c.m4: Move C++ comments to use __STDC_VERSION__ as the first test for C99

Using __STDC_VERSION__ as first test for C99 looks better and is similar to the C89 and C11 tests

--
Regards, Detlef
---
 lib/autoconf/c.m4 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
index 4751c7f5..199dda05 100644
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -1202,11 +1202,13 @@ AC_DEFUN([_AC_C_C99_TEST_GLOBALS],
 [m4_divert_text([INIT_PREPARE],
 [[# Test code for whether the C compiler supports C99 (global declarations)
 ac_c_conftest_c99_globals='
-// Does the compiler advertise C99 conformance?
+/* Does the compiler advertise C99 conformance? */
 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
 # error "Compiler does not advertise C99 conformance"
 #endif
 
+// See if C++-style comments work.
+
 #include <stdbool.h>
 extern int puts (const char *);
 extern int printf (const char *, ...);
@@ -1261,7 +1263,6 @@ typedef const char *ccp;
 static inline int
 test_restrict (ccp restrict text)
 {
-  // See if C++-style comments work.
   // Iterate through items via the restricted pointer.
   // Also check for declarations in for loops.
   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
-- 
2.34.1

