blob: fc0112e3b12577482b3529d0ba7db1037a8fb2cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/lib/stl.cpp.orig 2013-05-08 19:02:06 UTC
+++ src/lib/stl.cpp
@@ -54,6 +54,8 @@ const char * basename(const char * name)
return res;
}
+#else
+#include <libgen.h>
#endif
@@ -62,7 +64,7 @@ void stlExporter_c::write(const char * f
FILE * f;
unsigned long triangleCount = 0;
- const char * title = basename(fname);
+ const char * title = basename(const_cast<char*>(fname));
if (binaryMode)
{
|