Fixes for Cygwin gcc builds.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@179 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
bbahnsen 2006-05-16 15:51:23 +00:00
parent 9aae885601
commit 17b23c78ac
2 changed files with 8 additions and 2 deletions

View File

@ -495,10 +495,14 @@ Returns:
} }
#ifdef __GNUC__ #ifdef __GNUC__
void strlwr(char *s) #ifndef __CYGWIN__
char *strlwr(char *s)
{ {
char *p = s;
for(;*s;s++) { for(;*s;s++) {
*s = tolower(*s); *s = tolower(*s);
} }
return p;
} }
#endif #endif
#endif

View File

@ -131,7 +131,9 @@ PrintGuidToBuffer (
#define stricmp strcasecmp #define stricmp strcasecmp
#define strnicmp strncasecmp #define strnicmp strncasecmp
#define strcmpi strcasecmp #define strcmpi strcasecmp
void strlwr(char *s); #ifndef __CYGWIN__
char *strlwr(char *s);
#endif
#endif #endif
#endif #endif