lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> > > If I define _MSC_VER, it is utilized the 64-bit functions, MinGW can use
> > > them, but not by default.
> >
> > Isn't this a solution?
> >
> 
> use of this define globally (such as make MYCFLAGS="-D_MSC_VER=1400" mingw)
> leads to a large number of errors at link time. and just have to do a
> patch, it is best to do so:
> 
> [...]

With a little more work, you can do the patch in 'luaconf.h', which is
an "official" place to do patchesj by only adding these lines in its
"Local configuration" section:

  #if defined(liolib_c) && defined(__MINGW32__)
  #include <sys/types.h>

  #define l_fseek(f,o,w) fseeko(f,o,w)
  #define l_ftell(f) ftello(f)
  #define l_seeknum off_t
  #endif

-- Roberto