aboutsummaryrefslogtreecommitdiff
path: root/test/StormTest.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2019-05-10 06:41:24 +0200
committerGitHub <noreply@github.com>2019-05-10 06:41:24 +0200
commitb4e74f6710401195dc1e523c26f5cdcd3ddf8238 (patch)
tree533cdc9745767a5a639537a2d8b858fc4e3116ef /test/StormTest.cpp
parentf12d9db778ccd60f927d19aff1a3fa3e3cd85df8 (diff)
parent149b4ec512cea7f8fb0cdd136eb50a19ae6b7463 (diff)
Merge pull request #158 from extrowerk/haiku_support_pt2
FileStream.cpp: Add Haiku platform support
Diffstat (limited to 'test/StormTest.cpp')
-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
}