author | Johannes Sixt <j.sixt@viscovery.net> | |
Mon, 12 Nov 2007 10:09:05 +0000 (11:09 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 13 Nov 2007 02:16:34 +0000 (18:16 -0800) | ||
commit | 726c8ef5a5a129d8157d0043f60fe7195d2cdb77 | |
tree | c3873ba6e35fff1288596f070ef62c0b7380f8bd | tree | snapshot |
parent | 9e79f00f06a5500b30941e6925adda070504e6cf | commit | diff |
Fix preprocessor logic that determines the availablity of strchrnul().
Apart from the error in the condition (&& should actually be ||), the
construct
#if !defined(A) || !A
leads to a syntax error in the C preprocessor if A is indeed not defined.
Tested-by: David Symonds <dsymonds@gmail.com>
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Apart from the error in the condition (&& should actually be ||), the
construct
#if !defined(A) || !A
leads to a syntax error in the C preprocessor if A is indeed not defined.
Tested-by: David Symonds <dsymonds@gmail.com>
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h | diff | blob | history |