From 3101ac6bf324b2a41df30b7a23f1f3dbc8a2a1d5 Mon Sep 17 00:00:00 2001 From: bbahnsen Date: Tue, 16 May 2006 00:27:02 +0000 Subject: [PATCH] Fix GenFvImagei build on OS X git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@166 6f19259b-4bc3-4df7-8a09-765794883524 --- Tools/Source/TianoTools/Common/CommonLib.c | 9 +++++++++ Tools/Source/TianoTools/Common/CommonLib.h | 1 + Tools/Source/TianoTools/GenFvImage/build.xml | 9 +++++---- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/Tools/Source/TianoTools/Common/CommonLib.c b/Tools/Source/TianoTools/Common/CommonLib.c index e2b12b4d27..c07ffb9e45 100644 --- a/Tools/Source/TianoTools/Common/CommonLib.c +++ b/Tools/Source/TianoTools/Common/CommonLib.c @@ -493,3 +493,12 @@ Returns: return EFI_SUCCESS; } + +#ifdef __GNUC__ +void strlwr(char *s) +{ + for(;*s;s++) { + *s = tolower(*s); + } +} +#endif diff --git a/Tools/Source/TianoTools/Common/CommonLib.h b/Tools/Source/TianoTools/Common/CommonLib.h index fd8b6a48f7..257f066936 100644 --- a/Tools/Source/TianoTools/Common/CommonLib.h +++ b/Tools/Source/TianoTools/Common/CommonLib.h @@ -131,6 +131,7 @@ PrintGuidToBuffer ( #define stricmp strcasecmp #define strnicmp strncasecmp #define strcmpi strcasecmp +void strlwr(char *s); #endif #endif diff --git a/Tools/Source/TianoTools/GenFvImage/build.xml b/Tools/Source/TianoTools/GenFvImage/build.xml index 58cdb610a0..2fe1342b57 100644 --- a/Tools/Source/TianoTools/GenFvImage/build.xml +++ b/Tools/Source/TianoTools/GenFvImage/build.xml @@ -81,6 +81,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + @@ -110,7 +111,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - + @@ -142,7 +143,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - + @@ -174,7 +175,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - + @@ -206,7 +207,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - + -- 2.39.2