diff options
author | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-16 00:27:02 +0000 |
---|---|---|
committer | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-16 00:27:02 +0000 |
commit | 3101ac6bf324b2a41df30b7a23f1f3dbc8a2a1d5 (patch) | |
tree | 02a0e6bfd11a875fb1294f18a8124dd524b53416 /Tools/Source/TianoTools/Common | |
parent | 96c0505b54e384b64961cbb32b91ff5d53d14f65 (diff) | |
download | edk2-platforms-3101ac6bf324b2a41df30b7a23f1f3dbc8a2a1d5.tar.xz |
Fix GenFvImagei build on OS X
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@166 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source/TianoTools/Common')
-rw-r--r-- | Tools/Source/TianoTools/Common/CommonLib.c | 9 | ||||
-rw-r--r-- | Tools/Source/TianoTools/Common/CommonLib.h | 1 |
2 files changed, 10 insertions, 0 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
|