diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-12-08 09:20:05 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-12-08 09:20:05 +0000 |
commit | 895099d4fdcf538eaab9d9267f58bcd9429a1e3b (patch) | |
tree | 2b3d8e1bbd92b04e6dacd3a518b9a1f3db7b57d2 /Build/source | |
parent | ad94d59a5805530359190673a0606ed8fb4f369d (diff) |
Large files in lua
git-svn-id: svn://tug.org/texlive/trunk@32361 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/liolibext.c | 18 |
2 files changed, 22 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog index f133fd52e00..4b567a0b029 100644 --- a/Build/source/texk/web2c/luatexdir/ChangeLog +++ b/Build/source/texk/web2c/luatexdir/ChangeLog @@ -1,3 +1,7 @@ +2013-08-07 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * lua/liolibext.c: Large files in lua. + 2013-12-07 Peter Breitenlohner <peb@mppmu.mpg.de> Fix a serious bug related to large numbers in pdfimages. diff --git a/Build/source/texk/web2c/luatexdir/lua/liolibext.c b/Build/source/texk/web2c/luatexdir/lua/liolibext.c index 51cbc5bd979..e2c7c330b50 100644 --- a/Build/source/texk/web2c/luatexdir/lua/liolibext.c +++ b/Build/source/texk/web2c/luatexdir/lua/liolibext.c @@ -60,10 +60,28 @@ static const char _svn_version[] = /* }====================================================== */ +#if defined(LUA_USE_POSIX) + +#define l_fseek(f,o,w) fseeko(f,o,w) +#define l_ftell(f) ftello(f) +#define l_seeknum off_t + +#elif defined(LUA_WIN) && !defined(_CRTIMP_TYPEINFO) \ + && defined(_MSC_VER) && (_MSC_VER >= 1400) +/* Windows (but not DDK) and Visual C++ 2005 or higher */ + +#define l_fseek(f,o,w) _fseeki64(f,o,w) +#define l_ftell(f) _ftelli64(f) +#define l_seeknum __int64 + +#else + #define l_fseek(f,o,w) fseek(f,o,w) #define l_ftell(f) ftell(f) #define l_seeknum long +#endif + #define IO_PREFIX "_IO_" #define IO_INPUT (IO_PREFIX "input") #define IO_OUTPUT (IO_PREFIX "output") |