From acc65ffb2ca76f6d6d57749ddbe6da301ba54b8a Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Mon, 21 Nov 2011 10:05:41 +0100 Subject: SAL_N_ELEMENTS: use "check argument is array" version in all C++0x compilers --- sal/inc/sal/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sal') diff --git a/sal/inc/sal/macros.h b/sal/inc/sal/macros.h index b002248d221a..a1f42c3f260d 100644 --- a/sal/inc/sal/macros.h +++ b/sal/inc/sal/macros.h @@ -44,7 +44,7 @@ #endif #ifndef SAL_N_ELEMENTS -# if defined(__cplusplus) && defined(__GXX_EXPERIMENTAL_CXX0X__) +# if defined(__cplusplus) && ( defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L ) /* * Magic template to calculate at compile time the number of elements * in an array. Enforcing that the argument must be a array and not -- cgit