]> Savannah Git Hosting - gnulib.git/commitdiff
assert-h: fix configure comment-out
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Jan 2023 19:57:35 +0000 (11:57 -0800)
committerBruno Haible <bruno@clisp.org>
Sat, 14 Jan 2023 20:29:28 +0000 (21:29 +0100)
* m4/assert_h.m4 (gl_ASSERT_H): Also break apart "#undef
static_assert" with /**/.  Problem discovered with xlclang 16.1,
though it does not directly affect xlclang 16.1.

ChangeLog
m4/assert_h.m4

index f6df46ab862150e35f663a0c6042bdac3a66f02c..4ad7ed97d667a8f16cb143e8e0d28c0fc84d9338 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-01-13  Paul Eggert  <eggert@cs.ucla.edu>
+
+       assert-h: fix configure comment-out
+       * m4/assert_h.m4 (gl_ASSERT_H): Also break apart "#undef
+       static_assert" with /**/.  Problem discovered with xlclang 16.1,
+       though it does not directly affect xlclang 16.1.
+
 2023-01-11  Bruno Haible  <bruno@clisp.org>
 
        Fix link errors on Android 4.3.
index 6275f633a69e2f67e3772f9bd4dab1005db6f9cb..abba4fa3a1ad1a6740334b381b697a43aa1a6066 100644 (file)
@@ -60,7 +60,7 @@ AC_DEFUN([gl_ASSERT_H],
  /* Solaris 11.4 <assert.h> defines static_assert as a macro with 2 arguments.
     We need it also to be invocable with a single argument.  */
  #if defined __sun && (__STDC_VERSION__ - 0 >= 201112L) && !defined __cplusplus
-  #undef static_assert
+  #undef/**/static_assert
   #define static_assert _Static_assert
  #endif
 #endif])