path: root/test-path-utils.c
diff options
authorJohannes Sixt <>2016-01-25 21:47:56 (GMT)
committerJunio C Hamano <>2016-01-25 22:04:14 (GMT)
commite7d5ce816579723150c341116737fb51d8e33eb3 (patch)
tree0fc4691447f583325531a032afebf0f468d40f66 /test-path-utils.c
parent371471cea38cb4b5834c9e5715e1fe633829004f (diff)
mingw: avoid linking to the C library's isalpha()
The implementation of mingw_skip_dos_drive_prefix() calls isalpha() via has_dos_drive_prefix(). Since the definition occurs long before isalpha() is defined in git-compat-util.h, my build environment reports: CC alloc.o In file included from git-compat-util.h:186, from cache.h:4, from alloc.c:12: compat/mingw.h: In function 'mingw_skip_dos_drive_prefix': compat/mingw.h:365: warning: implicit declaration of function 'isalpha' Dscho does not see a similar warning in his build and suspects that ctype.h is included somehow behind the scenes. This implies that his build links to the C library's isalpha() and does not use git's isalpha(). To fix both the warning in my build and the inconsistency in Dscho's build, move the function definition to mingw.c. Then it picks up git's isalpha() because git-compat-util.h is included at the top of the file. Signed-off-by: Johannes Sixt <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'test-path-utils.c')
0 files changed, 0 insertions, 0 deletions