diff options
author | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-02-20 20:10:57 +0000 |
---|---|---|
committer | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-02-20 20:10:57 +0000 |
commit | 7993567dab822abc6b1fc0a11fda260c8fdf7170 (patch) | |
tree | 95b8c40cff71cc24ab1d3393d02c82964a9de558 /navit/file.c | |
parent | dcac72b762796cf3fcf9a780abd3f3241a28f2d6 (diff) | |
download | navit-7993567dab822abc6b1fc0a11fda260c8fdf7170.tar.gz |
Fix:core:Allow loading binfile maps above 2GB on Win32 (NOT WinCE).
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5743 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/file.c')
-rw-r--r-- | navit/file.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/navit/file.c b/navit/file.c index a517b8602..10bca2755 100644 --- a/navit/file.c +++ b/navit/file.c @@ -17,23 +17,16 @@ * Boston, MA 02110-1301, USA. */ -#define _FILE_OFFSET_BITS 64 -#define _LARGEFILE_SOURCE -#define _LARGEFILE64_SOURCE #include "config.h" -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif +#include "navit_lfs.h" #ifdef _MSC_VER #include <windows.h> #else #include <dirent.h> #endif /* _MSC_VER */ #include <string.h> -#include <fcntl.h> #include <sys/stat.h> #include <sys/mman.h> -#include <stdio.h> #include <stdlib.h> #include <wordexp.h> #include <glib.h> @@ -61,18 +54,6 @@ extern char *version; #include <openssl/rand.h> #endif -#ifdef HAVE_API_ANDROID -#define lseek lseek64 -#endif - -#ifndef O_LARGEFILE -#define O_LARGEFILE 0 -#endif - -#ifndef O_BINARY -#define O_BINARY 0 -#endif - #ifdef CACHE_SIZE static GHashTable *file_name_hash; #endif |