author | groucho <groucho> | 2003-05-07 09:01:39 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-05-07 09:01:39 (UTC) |
commit | 118d03d815a7615b9c53363218a7ac45b3f4c514 (patch) (side-by-side diff) | |
tree | 356953e2413cddcec0f35bd47bb6439767da7051 /noncore/apps/opie-reader/pdb.cpp | |
parent | 00894537decf01c5a5cdc565b2740b5e67a2e90f (diff) | |
download | opie-118d03d815a7615b9c53363218a7ac45b3f4c514.zip opie-118d03d815a7615b9c53363218a7ac45b3f4c514.tar.gz opie-118d03d815a7615b9c53363218a7ac45b3f4c514.tar.bz2 |
Incorporated TimWs current source tree and make it compile
Diffstat (limited to 'noncore/apps/opie-reader/pdb.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/pdb.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/noncore/apps/opie-reader/pdb.cpp b/noncore/apps/opie-reader/pdb.cpp index 3054424..dca67ff 100644 --- a/noncore/apps/opie-reader/pdb.cpp +++ b/noncore/apps/opie-reader/pdb.cpp @@ -1,5 +1,5 @@ #include "pdb.h" -#include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> +#ifdef _WINDOWS +#include <winsock2.h> +#endif @@ -51,9 +51,6 @@ bool Cpdb::openfile(const char *src) // char buf[0x100]; - struct stat buf; - stat(src, &buf); - file_length = buf.st_size; -// fseek(fin,0,SEEK_END); -// file_length = ftell(fin); + fseek(fin,0,SEEK_END); + file_length = ftell(fin); -// fseek(fin,0,SEEK_SET); + fseek(fin,0,SEEK_SET); |