mirror of
https://github.com/reactos/CMake.git
synced 2025-03-03 09:27:12 +00:00
Merge topic 'cmarray-templates'
dfe0c21 cmArray: Use macro variant of cmArray{Begin,Size,End} for old GCC.
This commit is contained in:
commit
564cf169e6
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user