treesheets: fix musl build

This commit is contained in:
maxice8 2018-10-07 20:30:05 -03:00 committed by Toyam Cox
parent 645b1d656d
commit cc98f670cf
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
musl doesn't GLOB_TILDE, so simply don't use it here.
diff --git a/lobster/src/platform.cpp b/lobster/src/platform.cpp
index ceaec49..68e2443 100644
--- lobster/src/platform.cpp
+++ lobster/src/platform.cpp
@@ -46,6 +46,10 @@
#include "sdlincludes.h" // FIXME
#endif
+#ifndef GLOB_TILDE
+#define GLOB_TILDE 0
+#endif
+
// Main dir to load files relative to, on windows this is where lobster.exe resides, on apple
// platforms it's the Resource folder in the bundle.
string datadir;