summaryrefslogtreecommitdiff
path: root/Tools/Source/TianoTools
diff options
context:
space:
mode:
authorbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-16 15:51:23 +0000
committerbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-16 15:51:23 +0000
commit17b23c78ac822cd588a62c30b63b8447cb8aca0d (patch)
tree99e9e88542c37c080d545f935e3f4d59049da823 /Tools/Source/TianoTools
parent9aae885601963793f30316e35463e6d81a6e1ab6 (diff)
downloadedk2-17b23c78ac822cd588a62c30b63b8447cb8aca0d.zip
edk2-17b23c78ac822cd588a62c30b63b8447cb8aca0d.tar.gz
edk2-17b23c78ac822cd588a62c30b63b8447cb8aca0d.tar.bz2
Fixes for Cygwin gcc builds.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@179 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source/TianoTools')
-rw-r--r--Tools/Source/TianoTools/Common/CommonLib.c6
-rw-r--r--Tools/Source/TianoTools/Common/CommonLib.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/Tools/Source/TianoTools/Common/CommonLib.c b/Tools/Source/TianoTools/Common/CommonLib.c
index c07ffb9..77f49a7 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 257f066..63f77e4 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