]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fixes for Cygwin gcc builds.
authorbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 16 May 2006 15:51:23 +0000 (15:51 +0000)
committerbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 16 May 2006 15:51:23 +0000 (15:51 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@179 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/TianoTools/Common/CommonLib.c
Tools/Source/TianoTools/Common/CommonLib.h

index c07ffb9e4530dfd25a12200eb8ff1620a8fc20e2..77f49a7875556a4d2a92dc44ea0b531d9c2233a5 100644 (file)
@@ -495,10 +495,14 @@ Returns:
 }\r
 \r
 #ifdef __GNUC__\r
-void strlwr(char *s)\r
+#ifndef __CYGWIN__\r
+char *strlwr(char *s)\r
 {\r
+  char *p = s;\r
   for(;*s;s++) {\r
     *s = tolower(*s);\r
   }\r
+  return p;\r
 }\r
 #endif\r
+#endif\r
index 257f06693676630b2a5b38d19be4d37c14c961c0..63f77e4557a0bd20d6d712e329ac34d5f45a7998 100644 (file)
@@ -131,7 +131,9 @@ PrintGuidToBuffer (
 #define stricmp strcasecmp\r
 #define strnicmp strncasecmp\r
 #define strcmpi strcasecmp\r
-void strlwr(char *s);\r
+#ifndef __CYGWIN__\r
+char *strlwr(char *s);\r
+#endif\r
 #endif\r
 \r
 #endif\r