From 839e283ece8f4a8312dd6c558df8c739356fddb7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 23 Dec 2011 22:55:44 -0500 Subject: Define static_assert --- assert/assert.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'assert') diff --git a/assert/assert.h b/assert/assert.h index 841f435973..4022e28b55 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 -- cgit v1.2.3