diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-11-25 10:50:03 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-11-25 10:50:03 -0200 |
commit | b0cbe778168e31625c8c59ad198dff3d8e093ccc (patch) | |
tree | 938d45046084373630ba072f849d5e70723639ce | |
parent | 6e899850b9178f934829c36aecb77cb2b9be6a05 (diff) | |
download | lua-b0cbe778168e31625c8c59ad198dff3d8e093ccc.tar.gz lua-b0cbe778168e31625c8c59ad198dff3d8e093ccc.tar.bz2 lua-b0cbe778168e31625c8c59ad198dff3d8e093ccc.zip |
'_fseeki64' and family not available in all Windows platforms
-rw-r--r-- | liolib.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 2.106 2011/11/11 19:59:17 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.107 2011/11/14 16:55:35 roberto Exp roberto $ |
3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -78,7 +78,9 @@ | |||
78 | #define l_ftell(f) ftello(f) | 78 | #define l_ftell(f) ftello(f) |
79 | #define l_seeknum off_t | 79 | #define l_seeknum off_t |
80 | 80 | ||
81 | #elif defined(LUA_WIN) | 81 | #elif defined(LUA_WIN) && !defined(_CRTIMP_TYPEINFO) \ |
82 | && defined(_MSC_VER) && (_MSC_VER >= 1400) | ||
83 | /* Windows (but not DDK) and Visual C++ 2005 or higher */ | ||
82 | 84 | ||
83 | #define l_fseek(f,o,w) _fseeki64(f,o,w) | 85 | #define l_fseek(f,o,w) _fseeki64(f,o,w) |
84 | #define l_ftell(f) _ftelli64(f) | 86 | #define l_ftell(f) _ftelli64(f) |