diff options
author | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-26 18:14:11 +0000 |
---|---|---|
committer | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-26 18:14:11 +0000 |
commit | fec763384826dd661c776bb6260ab2a8eda9bafa (patch) | |
tree | e0801fe72951f1ed5fdf8a95b8af9b2dd970ad57 /Tools/CCode/Source/GenFvImage/GenFvImageLib.c | |
parent | cbee1e74073214f0cef4025a881f13159bd1dcd0 (diff) | |
download | edk2-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/GenFvImage/GenFvImageLib.c')
-rw-r--r-- | Tools/CCode/Source/GenFvImage/GenFvImageLib.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Tools/CCode/Source/GenFvImage/GenFvImageLib.c b/Tools/CCode/Source/GenFvImage/GenFvImageLib.c index 888656ad5c..eb36663b8d 100644 --- a/Tools/CCode/Source/GenFvImage/GenFvImageLib.c +++ b/Tools/CCode/Source/GenFvImage/GenFvImageLib.c @@ -1617,15 +1617,7 @@ Returns: //
// Get the file size
//
-#ifdef __GNUC__
- {
- struct stat stat_buf;
- fstat(fileno(NewFile), &stat_buf);
- FileSize = stat_buf.st_size;
- }
-#else
FileSize = _filelength (fileno (NewFile));
-#endif
//
// Read the file into a buffer
|