rvthtool/cmake/macros/LargeFileSupport_fseeki64.c
David Korth f321fe5e65 Initial import of RVT-H Tool.
This program will allow for managing Nintendo RVT-H Reader devkits,
including dumping existing images and installing new images.

The current version doesn't actually do anything. It's mostly a copy
of the infrastructure from rom-properties, with some changes. In
particular, we're using CMake's TARGET_COMPILE_FEATURES() instead of
manually detecting C99 support.
2018-01-15 06:58:54 -05:00

16 lines
406 B
C

/**
* Large File Support test code: _fseeki64(), _ftelli64() [MSVC]
* Reference: https://github.com/Benjamin-Dobell/Heimdall/blob/master/cmake/LargeFilesWindows.c
*/
#include <stdio.h>
int main(int argc, const char **argv)
{
// _fseeki64() and _ftelli64() use __int64.
// NOTE: __int64 is an MSVC-proprietary type.
__int64 offset = _ftelli64(NULL);
_fseeki64(NULL, offset, SEEK_SET);
return 0;
}