Modified preprocessor directives to be better.
This commit is contained in:
parent
d6731c09d4
commit
34c42e8aa2
|
@ -24,11 +24,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#ifdef __HAIKU__
|
#ifdef __HAIKU__
|
||||||
#include <FindDirectory.h>
|
#include <FindDirectory.h>
|
||||||
#else
|
#elif !defined(_WIN32)
|
||||||
#ifndef _WIN32
|
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
|
|
||||||
|
@ -216,7 +214,7 @@ void engine_setupConfigDirectory()
|
||||||
engine_showError(2, dir);
|
engine_showError(2, dir);
|
||||||
|
|
||||||
snprintf(engine.configDirectory, PATH_MAX, "%s/", dir);
|
snprintf(engine.configDirectory, PATH_MAX, "%s/", dir);
|
||||||
#elif __HAIKU__
|
#elif defined(__HAIKU__)
|
||||||
subdir = "starfighter";
|
subdir = "starfighter";
|
||||||
|
|
||||||
char path[PATH_MAX];
|
char path[PATH_MAX];
|
||||||
|
|
Loading…
Reference in New Issue