Modified preprocessor directives to be better.

This commit is contained in:
Layla Marchant 2020-03-12 11:45:33 -04:00
parent d6731c09d4
commit 34c42e8aa2
1 changed files with 2 additions and 4 deletions

View File

@ -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];