bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* [PATCH 1/3] Fix _GL_HAVE__STATIC_ASSERT typo
@ 2019-05-09 16:10 Paul Eggert
  2019-05-09 16:10 ` [PATCH 2/3] Support C2X and C++17 static_assert Paul Eggert
  2019-05-09 16:10 ` [PATCH 3/3] verify: remove verify_true Paul Eggert
  0 siblings, 2 replies; 5+ messages in thread
From: Paul Eggert @ 2019-05-09 16:10 UTC (permalink / raw)
  To: bug-gnulib; +Cc: Paul Eggert

* lib/verify.h (_Static_assert): For the FreeBSD workaround,
use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
---
 ChangeLog    | 6 ++++++
 lib/verify.h | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 31e05adbd..12231d97b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+	Fix _GL_HAVE__STATIC_ASSERT typo
+	* lib/verify.h (_Static_assert): For the FreeBSD workaround,
+	use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
+
 2019-05-05  Bruno Haible  <bruno@clisp.org>
 
 	wcwidth: Ensure width 1, not 2, for ambiguous characters.
diff --git a/lib/verify.h b/lib/verify.h
index 6930645a3..eccd7e201 100644
--- a/lib/verify.h
+++ b/lib/verify.h
@@ -32,18 +32,18 @@
    down we could also use it with other compilers, but since this
    affects only the quality of diagnostics, why bother?  */
 #if (4 < __GNUC__ + (6 <= __GNUC_MINOR__) \
-     && (201112L <= __STDC_VERSION__  || !defined __STRICT_ANSI__) \
+     && (201112L <= __STDC_VERSION__ || !defined __STRICT_ANSI__) \
      && !defined __cplusplus)
 # define _GL_HAVE__STATIC_ASSERT 1
 #endif
-#if (6 <= __GNUC__) && defined __cplusplus
+#if 6 <= __GNUC__ && defined __cplusplus
 # define _GL_HAVE_STATIC_ASSERT 1
 #endif
 
 /* FreeBSD 9.1 <sys/cdefs.h>, included by <stddef.h> and lots of other
    system headers, defines a conflicting _Static_assert that is no
    better than ours; override it.  */
-#ifndef _GL_HAVE_STATIC_ASSERT
+#ifndef _GL_HAVE__STATIC_ASSERT
 # include <stddef.h>
 # undef _Static_assert
 #endif
-- 
2.21.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-19  0:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-09 16:10 [PATCH 1/3] Fix _GL_HAVE__STATIC_ASSERT typo Paul Eggert
2019-05-09 16:10 ` [PATCH 2/3] Support C2X and C++17 static_assert Paul Eggert
2019-05-09 16:10 ` [PATCH 3/3] verify: remove verify_true Paul Eggert
2019-06-18 22:26   ` Bruno Haible
2019-06-19  0:52     ` Paul Eggert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).