compat: make gcc bswap an inline function
authorJonathan Nieder <jrnieder@gmail.com>
Wed, 16 Mar 2011 07:00:49 +0000 (02:00 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Mar 2011 19:44:59 +0000 (12:44 -0700)
commitc6c8d0b797e33ce1f22d50b46d9c6eba91ed2cbc
tree1130feebbf16b3bb00360fa0935af720c6460344
parentc9b6782a08a728908bac8dc51def3607b3daa2a9
compat: make gcc bswap an inline function

Without this change, gcc -pedantic warns:

 cache.h: In function 'ce_to_dtype':
 cache.h:270:21: warning: ISO C forbids braced-groups within expressions [-pedantic]

An inline function is more readable anyway.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/bswap.h