Support for OpenBSD

- use fseeko and ftello like FreeBSD in tinyxml2
- use current directory as basePath if NULL (OpenBSD doesn't actually support this feature it is disabled via a patch in their ports)
This commit is contained in:
striker.sh authored and Ethan Lee committed 2021-06-13 10:48:20 -04:00
1 parent c02bd9235f
commit 9188bd23d3
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -103,7 +103,7 @@ distribution.
#if defined(_WIN64)
#define TIXML_FSEEK _fseeki64
#define TIXML_FTELL _ftelli64
#elif defined(__APPLE__) || (__FreeBSD__)
#elif defined(__APPLE__) || (__FreeBSD__) || (__OpenBSD__)
#define TIXML_FSEEK fseeko
#define TIXML_FTELL ftello
#elif defined(__unix__) && defined(__x86_64__)