Skip to content

Commit

Permalink
Adjust includes
Browse files Browse the repository at this point in the history
  • Loading branch information
zecruel committed Feb 28, 2023
1 parent 69e10fb commit 2561913
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/script.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@
#include <sys/types.h>
#include <sys/stat.h>

#ifdef _MSC_VER

#ifndef R_OK
#define R_OK _S_IREAD
#endif
#ifndef W_OK
#define W_OK _S_IWRITE
#endif
#ifndef X_OK
#define X_OK _S_IEXEC
#endif

#endif

struct script_obj{
lua_State *L; /* main lua state */
lua_State *T; /* thread for execution */
Expand Down

0 comments on commit 2561913

Please sign in to comment.