diff options
| -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) |
