diff options
| author | Sonicadvance1 <sonicadvance1@gmail.com> | 2008-07-20 11:02:41 +0000 |
|---|---|---|
| committer | Sonicadvance1 <sonicadvance1@gmail.com> | 2008-07-20 11:02:41 +0000 |
| commit | c7795c41b7f44bed9e6c1dbab40edebfe8566ded (patch) | |
| tree | c22daf09bb367e78062cddd4a806f85aaa6e83a9 /Source/Core/DiscIO/Src/Blob.cpp | |
| parent | 35950043a663ac0e07666a44955de526fb1ee8c6 (diff) | |
Linux: Fix ups for people running Linux. If it breaks anything, punch me in the face.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@30 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/Blob.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/Blob.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/Src/Blob.cpp b/Source/Core/DiscIO/Src/Blob.cpp index 200a3bcf2f..456f85f307 100644 --- a/Source/Core/DiscIO/Src/Blob.cpp +++ b/Source/Core/DiscIO/Src/Blob.cpp @@ -1,10 +1,11 @@ #ifdef WIN32
#include <io.h>
#include <windows.h>
+#else
+#include <unistd.h>
#endif
#include "stdafx.h"
-
#include "../../../../Externals/zlib/zlib.h"
#include "Blob.h"
@@ -103,7 +104,11 @@ class PlainFileReader PlainFileReader(const char* filename)
{
file_ = fopen(filename, "rb");
- fseek64(file_, 0, SEEK_END);
+ #if 0
+ fseek64(file_, 0, SEEK_END);
+ #else
+ fseek(file_, 0, SEEK_END); // I don't have fseek64 with gcc 4.3
+ #endif
size = ftell(file_);
fseek(file_, 0, SEEK_SET);
}
|
