mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
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:
parent
c02bd9235f
commit
9188bd23d3
3 changed files with 4 additions and 3 deletions
|
@ -25,6 +25,7 @@ Contributors
|
||||||
* Thomas Sänger (@HorayNarea)
|
* Thomas Sänger (@HorayNarea)
|
||||||
* Info Teddy (@InfoTeddy)
|
* Info Teddy (@InfoTeddy)
|
||||||
* Pierre-Alain TORET (@daftaupe)
|
* Pierre-Alain TORET (@daftaupe)
|
||||||
|
* Jules de Sartiges (@strikersh)
|
||||||
* leo60228 (@leo60228)
|
* leo60228 (@leo60228)
|
||||||
* Emmanuel Vadot (@evadot)
|
* Emmanuel Vadot (@evadot)
|
||||||
* Rémi Verschelde (@akien-mga)
|
* Rémi Verschelde (@akien-mga)
|
||||||
|
|
|
@ -148,8 +148,8 @@ int FILESYSTEM_init(char *argvZero, char* baseDir, char *assetsPath)
|
||||||
|
|
||||||
if (basePath == NULL)
|
if (basePath == NULL)
|
||||||
{
|
{
|
||||||
puts("Unable to get base path!");
|
puts("Unable to determine base path, falling back to current directory");
|
||||||
return 0;
|
basePath = SDL_strdup("./");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mount the stock content last */
|
/* Mount the stock content last */
|
||||||
|
|
2
third_party/tinyxml2/tinyxml2.cpp
vendored
2
third_party/tinyxml2/tinyxml2.cpp
vendored
|
@ -103,7 +103,7 @@ distribution.
|
||||||
#if defined(_WIN64)
|
#if defined(_WIN64)
|
||||||
#define TIXML_FSEEK _fseeki64
|
#define TIXML_FSEEK _fseeki64
|
||||||
#define TIXML_FTELL _ftelli64
|
#define TIXML_FTELL _ftelli64
|
||||||
#elif defined(__APPLE__) || (__FreeBSD__)
|
#elif defined(__APPLE__) || (__FreeBSD__) || (__OpenBSD__)
|
||||||
#define TIXML_FSEEK fseeko
|
#define TIXML_FSEEK fseeko
|
||||||
#define TIXML_FTELL ftello
|
#define TIXML_FTELL ftello
|
||||||
#elif defined(__unix__) && defined(__x86_64__)
|
#elif defined(__unix__) && defined(__x86_64__)
|
||||||
|
|
Loading…
Reference in a new issue