summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-10-27 17:30:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-10-27 17:36:45 (GMT)
commit5c238e29a85dd109e42513c6a9d09008d8839bae (patch)
treee88aabedd7ee8128b612d829e63f8355f3bf8bcf /compat
parentde61cebde72a15b85b6e6a06ef4c3614b6afdac8 (diff)
downloadgit-5c238e29a85dd109e42513c6a9d09008d8839bae.zip
git-5c238e29a85dd109e42513c6a9d09008d8839bae.tar.gz
git-5c238e29a85dd109e42513c6a9d09008d8839bae.tar.bz2
git-compat-util: move content inside ifdef/endif guards
Commit 3f2e2297b9 (add an extra level of indirection to main(), 2016-07-01) added a declaration to git-compat-util.h, but it was accidentally placed after the final #endif that guards against multiple inclusions. This doesn't have any actual impact on the code, since it's not incorrect to repeat a function declaration in C. But it's a bad habit, and makes it more likely for somebody else to make the same mistake. It also defeats gcc's optimization to avoid opening header files whose contents are completely guarded. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions