This implements #786. TinyXML reads the entire file into a pre-allocated buffer in memory. To get the buffer size, it uses `fseek()` to seek to the end of the file, and `ftell()` to get the current byte offset. But because `ftell()` returns a 32-bit signed value, it can only represent byte offsets, hence file sizes, up to about 2GB. To get around this, `fseek` and `ftell` have been replaced by the `TIXML_FSEEK` and `TIXML_FTELL` macros, respectively, which will resolve to 64-bit versions of these functions on platforms that have them.
75 KiB
Executable File
75 KiB
Executable File