diff options
author | Ladislav Zezula <zezula@volny.cz> | 2019-05-10 06:41:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-10 06:41:24 +0200 |
commit | b4e74f6710401195dc1e523c26f5cdcd3ddf8238 (patch) | |
tree | 533cdc9745767a5a639537a2d8b858fc4e3116ef /test | |
parent | f12d9db778ccd60f927d19aff1a3fa3e3cd85df8 (diff) | |
parent | 149b4ec512cea7f8fb0cdd136eb50a19ae6b7463 (diff) |
Merge pull request #158 from extrowerk/haiku_support_pt2
FileStream.cpp: Add Haiku platform support
Diffstat (limited to 'test')
-rw-r--r-- | test/StormTest.cpp | 6 |
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
}
|