On Mon, Aug 30, 2010 at 18:40, Johannes Sixt [off-list ref] wrote:
On Montag, 30. August 2010, Joshua Jensen wrote:
quoted
From: Ævar Arnfjörð Bjarmason
quoted
+ COMPAT_OBJS = compat/fnmatch/fnmatch.o
+ COMPAT_CFLAGS = -Icompat -Icompat/fnmatch
...
quoted
You added COMPAT_OBJS
above, but I think there is no linker guarantee it will pick up
compat/fnmatch/fnmatch.o over the C runtime version?
The way linkers work ensures that git code picks up the compat version when
defined this way.
So why does e.g. compat/snprintf.c need to "#undef snprintf" before
defining it again?