diff --git a/src/engine.c b/src/engine.c
index ced9ff3..dd466c0 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -24,11 +24,9 @@ along with this program. If not, see .
#ifdef __HAIKU__
#include
-#else
-#ifndef _WIN32
+#elif !defined(_WIN32)
#include
#endif
-#endif
#include "SDL.h"
@@ -216,7 +214,7 @@ void engine_setupConfigDirectory()
engine_showError(2, dir);
snprintf(engine.configDirectory, PATH_MAX, "%s/", dir);
-#elif __HAIKU__
+#elif defined(__HAIKU__)
subdir = "starfighter";
char path[PATH_MAX];