compat: add a basename() compatibility function
commite1c068869216c8c231c1585bbfa9fda42b4756f8
authorDavid Aguilar <davvid@gmail.com>
Sun, 31 May 2009 08:35:51 +0000 (31 01:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2009 00:57:59 +0000 (31 17:57 -0700)
tree929b5984b0ce8bfaba925a84ebb5ae04e7559e28
parent0620b39b3b7b1f27bf863d9591fd8146a9a8931d
compat: add a basename() compatibility function

Some systems such as Windows lack libgen.h so provide a
basename() implementation for cross-platform use.

This introduces the NO_LIBGEN_H construct to the Makefile
and autoconf scripts.

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
compat/basename.c [new file with mode: 0644]
config.mak.in
configure.ac
git-compat-util.h