summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sal/inc/sal/macros.h2
1 files changed, 1 insertions, 1 deletions
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