VS2010 - fseeko
fseeko, ftello are stdio.h function that are identical to fseek and ftell. But, they are designed for handle 64 bits file offset.
See http://www.manpagez.com/man/3/fseeko/
These function exists in Cygwin and Linux.
However, for VS2010, it does not have fseeko and ftello.
To make your program compilation with fseeko in VS2010, you can do the following
This will make fseeko to use VS2010 _fseeki64. It is a 64 bit equivalent in VC++.
See http://www.manpagez.com/man/3/fseeko/
These function exists in Cygwin and Linux.
However, for VS2010, it does not have fseeko and ftello.
To make your program compilation with fseeko in VS2010, you can do the following
#ifdef _WIN32
# ifdef __MINGW32__
# define fseeko fseeko64
# define ftello ftello64
# else
# define fseeko _fseeki64
# define ftello _ftelli64
# endif
#endif
This will make fseeko to use VS2010 _fseeki64. It is a 64 bit equivalent in VC++.
What is the copyright licence for this pre-processor code snippet? Is it available as GPL2. ?
ReplyDelete