File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 32
32
#include <sys/types.h> // for open
33
33
#include <sys/stat.h> // for open
34
34
#ifdef _MSC_VER
35
- #include <io.h>
36
- #include <fcntl.h> // for open
37
- #define read _read
38
- #define close _close
39
- #define ssize_t int
40
- #define snprintf _snprintf
35
+ #include <io.h>
36
+ #include <fcntl.h> // for open
37
+ #ifndef PATH_MAX
38
+ #define PATH_MAX 1024 /* same with Mac OS X's syslimits.h */
39
+ #endif
40
+ #define read _read
41
+ #define close _close
42
+ #define ssize_t int
43
+ #define snprintf _snprintf
41
44
#else
42
- #include <sys/fcntl.h> // for open
43
- #include <unistd.h>
45
+ #include <sys/fcntl.h> // for open
46
+ #include <unistd.h>
44
47
#endif
45
48
/* we use Lua */
46
49
#include <lua.h>
@@ -180,9 +183,6 @@ void initialise_lua_state()
180
183
# define PDLUA_DEBUG3 PDLUA_DEBUG
181
184
#endif
182
185
183
- EXTERN int sys_trytoopenone (const char * dir , const char * name , const char * ext ,
184
- char * dirresult , char * * nameresult , unsigned int size , int bin );
185
-
186
186
// In plugdata we're linked statically and thus c_externdir is empty.
187
187
// So we pass a data directory to the setup function instead and store it here.
188
188
// ag: Renamed to pdlua_datadir since we also need this in vanilla when
You can’t perform that action at this time.
0 commit comments