Commit 564cf169 authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'cmarray-templates'

dfe0c216 cmArray: Use macro variant of cmArray{Begin,Size,End} for old GCC.
parents 0c46e556 dfe0c216
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment