From: bbahnsen Date: Tue, 16 May 2006 15:51:23 +0000 (+0000) Subject: Fixes for Cygwin gcc builds. X-Git-Tag: edk2-stable201903~25499 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=17b23c78ac822cd588a62c30b63b8447cb8aca0d;hp=9aae885601963793f30316e35463e6d81a6e1ab6;p=mirror_edk2.git Fixes for Cygwin gcc builds. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@179 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/Source/TianoTools/Common/CommonLib.c b/Tools/Source/TianoTools/Common/CommonLib.c index c07ffb9e45..77f49a7875 100644 --- a/Tools/Source/TianoTools/Common/CommonLib.c +++ b/Tools/Source/TianoTools/Common/CommonLib.c @@ -495,10 +495,14 @@ Returns: } #ifdef __GNUC__ -void strlwr(char *s) +#ifndef __CYGWIN__ +char *strlwr(char *s) { + char *p = s; for(;*s;s++) { *s = tolower(*s); } + return p; } #endif +#endif diff --git a/Tools/Source/TianoTools/Common/CommonLib.h b/Tools/Source/TianoTools/Common/CommonLib.h index 257f066936..63f77e4557 100644 --- a/Tools/Source/TianoTools/Common/CommonLib.h +++ b/Tools/Source/TianoTools/Common/CommonLib.h @@ -131,7 +131,9 @@ PrintGuidToBuffer ( #define stricmp strcasecmp #define strnicmp strncasecmp #define strcmpi strcasecmp -void strlwr(char *s); +#ifndef __CYGWIN__ +char *strlwr(char *s); +#endif #endif #endif