mirror of
https://github.com/GerbilSoft/rvthtool.git
synced 2025-06-18 11:35:33 -04:00

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.
16 lines
406 B
C
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;
|
|
}
|