Skip to content

Commit f452084

Browse files
committed
Merge pull request #35 from dscho/fix-warnings
squash! Port header fixes from MSys2
2 parents e9a2fe0 + b2eeeed commit f452084

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compat/mingw.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,10 @@ static inline int symlink(const char *oldpath, const char *newpath)
9999
{ errno = ENOSYS; return -1; }
100100
static inline int fchmod(int fildes, mode_t mode)
101101
{ errno = ENOSYS; return -1; }
102+
#ifndef __MINGW64_VERSION_MAJOR
102103
static inline pid_t fork(void)
103104
{ errno = ENOSYS; return -1; }
105+
#endif
104106
static inline unsigned int alarm(unsigned int seconds)
105107
{ return 0; }
106108
static inline int fsync(int fd)
@@ -390,8 +392,10 @@ static inline char *mingw_find_last_dir_sep(const char *path)
390392
int mingw_offset_1st_component(const char *path);
391393
#define offset_1st_component mingw_offset_1st_component
392394
#define PATH_SEP ';'
395+
#ifndef __MINGW64_VERSION_MAJOR
393396
#define PRIuMAX "I64u"
394397
#define PRId64 "I64d"
398+
#endif
395399

396400
void mingw_open_html(const char *path);
397401
#define open_html mingw_open_html

0 commit comments

Comments
 (0)