summaryrefslogtreecommitdiff
path: root/gnulib/verify.h
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-02-07 11:37:31 +0400
committerIgor Pashev <pashev.igor@gmail.com>2012-02-07 11:37:31 +0400
commitcfada5b8f2faeb7b2353e5c8339b9bb3d3a7dd8e (patch)
treec89b2c1617be2915d0f4e0161e1b350c2ef6fe78 /gnulib/verify.h
parenta1ac12249d01d47e01fde86c871b85ca4d30bfe0 (diff)
downloadutil-linux-old-cfada5b8f2faeb7b2353e5c8339b9bb3d3a7dd8e.tar.gz
Updated (downgraded ;-) GNUlib, added mising files
Diffstat (limited to 'gnulib/verify.h')
-rw-r--r--gnulib/verify.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/gnulib/verify.h b/gnulib/verify.h
index cef14ad1..9a8caad0 100644
--- a/gnulib/verify.h
+++ b/gnulib/verify.h
@@ -1,6 +1,6 @@
/* Compile-time assert-like macros.
- Copyright (C) 2005-2006, 2009-2012 Free Software Foundation, Inc.
+ Copyright (C) 2005-2006, 2009-2011 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -21,11 +21,13 @@
# define _GL_VERIFY_H
-/* Define _GL_HAVE__STATIC_ASSERT to 1 if _Static_assert works as per C11.
- This is supported by GCC 4.6.0 and later, in C mode, and its use
- here generates easier-to-read diagnostics when verify (R) fails.
+/* Define _GL_HAVE__STATIC_ASSERT to 1 if _Static_assert works as per the
+ C1X draft N1548 section 6.7.10. This is supported by GCC 4.6.0 and
+ later, in C mode, and its use here generates easier-to-read diagnostics
+ when verify (R) fails.
- Define _GL_HAVE_STATIC_ASSERT to 1 if static_assert works as per C++11.
+ Define _GL_HAVE_STATIC_ASSERT to 1 if static_assert works as per the
+ C++0X draft N3242 section 7.(4).
This will likely be supported by future GCC versions, in C++ mode.
Use this only with GCC. If we were willing to slow 'configure'
@@ -186,7 +188,7 @@ template <int w>
trailing ';'. If R is false, fail at compile-time, preferably
with a diagnostic that includes the string-literal DIAGNOSTIC.
- Unfortunately, unlike C11, this implementation must appear as an
+ Unfortunately, unlike C1X, this implementation must appear as an
ordinary declaration, and cannot appear inside struct { ... }. */
# ifdef _GL_HAVE__STATIC_ASSERT
@@ -203,7 +205,7 @@ template <int w>
# define _Static_assert(R, DIAGNOSTIC) _GL_VERIFY (R, DIAGNOSTIC)
# endif
# if !defined _GL_HAVE_STATIC_ASSERT && !defined static_assert
-# define static_assert _Static_assert /* C11 requires this #define. */
+# define static_assert _Static_assert /* Draft C1X requires this #define. */
# endif
# endif