diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-12-23 22:55:44 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2012-01-01 07:17:20 -0500 |
commit | 839e283ece8f4a8312dd6c558df8c739356fddb7 (patch) | |
tree | 075f4d373a3716e7efd073016546451a7c610f20 /assert | |
parent | 90fa7312770b1caca8843a55a9c3825585aac140 (diff) | |
download | glibc-839e283ece8f4a8312dd6c558df8c739356fddb7.zip glibc-839e283ece8f4a8312dd6c558df8c739356fddb7.tar.gz glibc-839e283ece8f4a8312dd6c558df8c739356fddb7.tar.bz2 |
Define static_assert
Diffstat (limited to 'assert')
-rw-r--r-- | assert/assert.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/assert/assert.h b/assert/assert.h index 841f435..4022e28 100644 --- a/assert/assert.h +++ b/assert/assert.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,1992,1994-2001,2003,2004,2007 +/* Copyright (C) 1991,1992,1994-2001,2003,2004,2007,2011 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -113,3 +113,10 @@ __END_DECLS # endif #endif /* NDEBUG. */ + + +#ifdef __USE_ISOC11 +/* Static assertion. Requires support in the compiler. */ +# undef static_assert +# define static_assert _Static_assert +#endif |