summaryrefslogtreecommitdiff
path: root/t/t5515/fetch.master_remote-explicit
diff options
context:
space:
mode:
authorLibravatar Charles Bailey <cbailey32@bloomberg.net>2015-06-24 23:12:07 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-06-24 17:14:00 -0700
commite2c6f7cd5a66ed0009662d2651e0cf3c655e83a9 (patch)
treec79b499b4fe40cb26c4d8b78e920f6e60b709432 /t/t5515/fetch.master_remote-explicit
parentgit-compat-util.h: implement a different ARRAY_SIZE macro for for safely deri... (diff)
downloadtgif-e2c6f7cd5a66ed0009662d2651e0cf3c655e83a9.tar.xz
Fix definition of ARRAY_SIZE for non-gcc builds
The improved ARRAY_SIZE macro uses BARF_UNLESS_AN_ARRAY which expands to a valid check for recent gcc versions and to 0 for older gcc versions but is not defined on non-gcc builds. Non-gcc builds need this macro to expand to 0 as well. The current outer test (defined(__GNUC__) && (__GNUC__ >= 3)) is a strictly weaker condition than the inner test (GIT_GNUC_PREREQ(3, 1)) so we can omit the outer test and cause the BARF_UNLESS_AN_ARRAY macro to be defined correctly on non-gcc builds as well as gcc builds with older versions. Signed-off-by: Charles Bailey <cbailey32@bloomberg.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/fetch.master_remote-explicit')
0 files changed, 0 insertions, 0 deletions