summaryrefslogtreecommitdiff
path: root/Tools/CCode/Source/Common/CommonLib.h
diff options
context:
space:
mode:
authorbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-10-26 18:14:11 +0000
committerbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-10-26 18:14:11 +0000
commitfec763384826dd661c776bb6260ab2a8eda9bafa (patch)
treee0801fe72951f1ed5fdf8a95b8af9b2dd970ad57 /Tools/CCode/Source/Common/CommonLib.h
parentcbee1e74073214f0cef4025a881f13159bd1dcd0 (diff)
downloadedk2-platforms-fec763384826dd661c776bb6260ab2a8eda9bafa.tar.xz
Implement a filelength function for GCC.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1847 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/CCode/Source/Common/CommonLib.h')
-rw-r--r--Tools/CCode/Source/Common/CommonLib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tools/CCode/Source/Common/CommonLib.h b/Tools/CCode/Source/Common/CommonLib.h
index 46f0cbace5..f6c29ef8a8 100644
--- a/Tools/CCode/Source/Common/CommonLib.h
+++ b/Tools/CCode/Source/Common/CommonLib.h
@@ -124,9 +124,13 @@ PrintGuidToBuffer (
#define ASSERT(x) assert(x)
#ifdef __GNUC__
+#include <stdio.h>
+#include <sys/stat.h>
#define stricmp strcasecmp
+#define _stricmp strcasecmp
#define strnicmp strncasecmp
#define strcmpi strcasecmp
+size_t _filelength(FILE *file);
#ifndef __CYGWIN__
char *strlwr(char *s);
#endif