From dfe0c2168b4d3cca65444d7d0209dbd631525bd9 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 24 Oct 2013 16:07:28 +0200 Subject: [PATCH] cmArray: Use macro variant of cmArray{Begin,Size,End} for old GCC. It is not capable of using the template versions. --- Source/cmStandardIncludes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 6c7714481..18d017dca 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -377,7 +377,8 @@ static thisClass* SafeDownCast(cmObject *c) \ return 0;\ } -#if defined(_MSC_VER) && _MSC_VER < 1300 +#if defined(_MSC_VER) && _MSC_VER < 1300 \ + || defined(__GNUC__) && __GNUC__ < 3 #define cmArrayBegin(a) a #define cmArraySize(a) (sizeof(a)/sizeof(*a))