Skip to content

Commit 149b4ec

Browse files
committed
Haiku support for tests
1 parent 138adb6 commit 149b4ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/StormTest.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ static HANDLE InitDirectorySearch(LPCTSTR szDirectory)
718718

719719
#endif
720720

721-
#ifdef PLATFORM_LINUX
721+
#if defined(PLATFORM_LINUX) || defined(PLATFORM_HAIKU)
722722

723723
// Keep compilers happy
724724
return (HANDLE)opendir(szDirectory);
@@ -753,7 +753,7 @@ static bool SearchDirectory(HANDLE hFind, TCHAR * szDirEntry, size_t cchDirEntry
753753

754754
#endif
755755

756-
#ifdef PLATFORM_LINUX
756+
#if defined(PLATFORM_LINUX) || defined(PLATFORM_HAIKU)
757757

758758
struct dirent * directory_entry;
759759

@@ -776,7 +776,7 @@ static void FreeDirectorySearch(HANDLE hFind)
776776
FindClose(hFind);
777777
#endif
778778

779-
#ifdef PLATFORM_LINUX
779+
#if defined(PLATFORM_LINUX) || defined(PLATFORM_HAIKU)
780780
closedir((DIR *)hFind);
781781
#endif
782782
}

0 commit comments

Comments
 (0)