Skip to content

Commit

Permalink
add missing windows defines
Browse files Browse the repository at this point in the history
  • Loading branch information
vtorri authored and annacrombie committed Jan 6, 2024
1 parent 802d17b commit 0660a6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/platform/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
#include <stdbool.h>

#ifdef _WIN32
#ifndef S_IRUSR
#define S_IRUSR 0
#endif
#ifndef S_ISDIR
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
#ifndef S_ISREG
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif
extern char *optarg;
extern int opterr, optind, optopt;
#else
Expand Down
1 change: 1 addition & 0 deletions src/install.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "lang/interpreter.h"
#include "log.h"
#include "options.h"
#include "platform/os.h"
#include "platform/path.h"

static bool
Expand Down

0 comments on commit 0660a6e

Please sign in to comment.