Skip to content

Commit

Permalink
Define S_IRUSR, S_IWUSR, S_IRGRP to 0 on Windows, as we don't have un…
Browse files Browse the repository at this point in the history
…ix permissions there and those variables are undefined.
  • Loading branch information
nanoant committed Jan 29, 2008
1 parent e8f2be4 commit b3fbe14
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions win32/include/win32_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
#define CONFIG_DIR "."
#define LIBRARY_DIR "."

#ifndef S_IRUSR
#define S_IRUSR 0
#endif
#ifndef S_IWUSR
#define S_IWUSR 0
#endif
#ifndef S_IRGRP
#define S_IRGRP 0
#endif

/*
#define sleep Sleep
#define strcasecmp stricmp
Expand Down

0 comments on commit b3fbe14

Please sign in to comment.