From 17b23c78ac822cd588a62c30b63b8447cb8aca0d Mon Sep 17 00:00:00 2001 From: bbahnsen Date: Tue, 16 May 2006 15:51:23 +0000 Subject: [PATCH] Fixes for Cygwin gcc builds. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@179 6f19259b-4bc3-4df7-8a09-765794883524 --- Tools/Source/TianoTools/Common/CommonLib.c | 6 +++++- Tools/Source/TianoTools/Common/CommonLib.h | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) 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 -- 2.39.2