Skip to content

Commit

Permalink
Fix invalid close_os macro on non-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
finwo committed Feb 24, 2024
1 parent a0ef815 commit c6e0756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extern "C" {
#define open_os open
#define write_os write
#define read_os read
#define close_os _close
#define close_os close
#define unlink_os unlink
#define OPENMODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP)
#else
Expand All @@ -51,7 +51,7 @@ extern "C" {
#define open_os open
#define write_os write
#define read_os read
#define close_os _close
#define close_os close
#define unlink_os unlink
#define OPENMODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP)
#endif
Expand Down

0 comments on commit c6e0756

Please sign in to comment.