Skip to content

Commit

Permalink
Guard DT_UNKNOWN, DT_REG and DT_DIR. Fixes build on Haiku where these…
Browse files Browse the repository at this point in the history
… macros do not exist.
  • Loading branch information
kwyxz authored and Ghabry committed Sep 30, 2020
1 parent 7eeffa9 commit 536e4bf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
#include <cassert>
#include <utility>

#ifndef DT_UNKNOWN
#define DT_UNKNOWN 0
#endif
#ifndef DT_REG
#define DT_REG DT_UNKNOWN
#endif
#ifndef DT_DIR
#define DT_DIR DT_UNKNOWN
#endif

Platform::File::File(std::string name) :
#ifdef _WIN32
filename(Utils::ToWideString(name))
Expand Down

0 comments on commit 536e4bf

Please sign in to comment.