From 149b4ec512cea7f8fb0cdd136eb50a19ae6b7463 Mon Sep 17 00:00:00 2001 From: Zoltán Mizsei Date: Thu, 9 May 2019 20:39:00 +0200 Subject: Haiku support for tests --- test/StormTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/StormTest.cpp') 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 } -- cgit v1.2.3