summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-10-24 14:07:28 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-10-24 14:07:52 (GMT)
commitdfe0c2168b4d3cca65444d7d0209dbd631525bd9 (patch)
tree62078262bcac6ad3b88f024549929615dddd5603 /Source/cmStandardIncludes.h
parentd169b1f0372e8d6d44406d308381941513f0349a (diff)
downloadCMake-dfe0c2168b4d3cca65444d7d0209dbd631525bd9.zip
CMake-dfe0c2168b4d3cca65444d7d0209dbd631525bd9.tar.gz
CMake-dfe0c2168b4d3cca65444d7d0209dbd631525bd9.tar.bz2
cmArray: Use macro variant of cmArray{Begin,Size,End} for old GCC.
It is not capable of using the template versions.
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index 6c77144..18d017d 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))