aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltán Mizsei <zmizsei@extrowerk.com>2019-05-09 20:39:00 +0200
committerZoltán Mizsei <zmizsei@extrowerk.com>2019-05-09 20:39:00 +0200
commit149b4ec512cea7f8fb0cdd136eb50a19ae6b7463 (patch)
tree533cdc9745767a5a639537a2d8b858fc4e3116ef
parent138adb600408cb0032654e275dffa4c33cd49164 (diff)
Haiku support for tests
-rw-r--r--test/StormTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/StormTest.cpp b/test/StormTest.cpp
index 4467cfa..2deddf6 100644
--- a/test/StormTest.cpp
+++ b/test/StormTest.cpp
@@ -718,7 +718,7 @@ static HANDLE InitDirectorySearch(LPCTSTR szDirectory)
#endif
-#ifdef PLATFORM_LINUX
+#if defined(PLATFORM_LINUX) || defined(PLATFORM_HAIKU)
// Keep compilers happy
return (HANDLE)opendir(szDirectory);
@@ -753,7 +753,7 @@ static bool SearchDirectory(HANDLE hFind, TCHAR * szDirEntry, size_t cchDirEntry
#endif
-#ifdef PLATFORM_LINUX
+#if defined(PLATFORM_LINUX) || defined(PLATFORM_HAIKU)
struct dirent * directory_entry;
@@ -776,7 +776,7 @@ static void FreeDirectorySearch(HANDLE hFind)
FindClose(hFind);
#endif
-#ifdef PLATFORM_LINUX
+#if defined(PLATFORM_LINUX) || defined(PLATFORM_HAIKU)
closedir((DIR *)hFind);
#endif
}