diff options
author | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-16 15:51:23 +0000 |
---|---|---|
committer | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-16 15:51:23 +0000 |
commit | 17b23c78ac822cd588a62c30b63b8447cb8aca0d (patch) | |
tree | 99e9e88542c37c080d545f935e3f4d59049da823 | |
parent | 9aae885601963793f30316e35463e6d81a6e1ab6 (diff) | |
download | edk2-platforms-17b23c78ac822cd588a62c30b63b8447cb8aca0d.tar.xz |
Fixes for Cygwin gcc builds.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@179 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | Tools/Source/TianoTools/Common/CommonLib.c | 6 | ||||
-rw-r--r-- | 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
|