Skip to content

Commit

Permalink
Merge pull request #4509 from michaellilltokiwa/win--fix-compilation-…
Browse files Browse the repository at this point in the history
…of-win.c

win: fix compilation of win.c
  • Loading branch information
michaellilltokiwa authored Dec 16, 2024
2 parents 79c835d + 445f197 commit c33d9cc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/win.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,13 +829,10 @@ void * fzE_file_open(char * file_name, int64_t * open_results, int8_t mode)
errno = 0;
FILE * fp = fopen(file_name, mode==0 ? "rb" : "a+b");
if (fp!=NULL)
{
fcntl(fileno(fp), F_SETFD, FD_CLOEXEC);
}
else
{
open_results[0] = (int64_t)errno;
}
// NYI: UNDER DEVELOPMENT: not available on windows: fcntl(fileno(fp), F_SETFD, FD_CLOEXEC);
return fp;
}

Expand Down

0 comments on commit c33d9cc

Please sign in to comment.