diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-10-24 14:07:28 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-10-24 14:07:52 (GMT) |
commit | dfe0c2168b4d3cca65444d7d0209dbd631525bd9 (patch) | |
tree | 62078262bcac6ad3b88f024549929615dddd5603 /Source/cmStandardIncludes.h | |
parent | d169b1f0372e8d6d44406d308381941513f0349a (diff) | |
download | CMake-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.h | 3 |
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)) |