Skip to content

Commit

Permalink
Add "io.h" for _WIN tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-- committed Aug 31, 2024
1 parent 40f3947 commit 209840b
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_append.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "minunit.h"

#if defined(_WIN32) || defined(_WIN64)
#include <io.h>

#define MKTEMP _mktemp
#define UNLINK _unlink
#else
Expand Down
2 changes: 2 additions & 0 deletions test/test_entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "minunit.h"

#if defined(_WIN32) || defined(_WIN64)
#include <io.h>

#define MKTEMP _mktemp
#define UNLINK _unlink
#else
Expand Down
2 changes: 2 additions & 0 deletions test/test_extract.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "minunit.h"

#if defined(_WIN32) || defined(_WIN64)
#include <io.h>

#define MKTEMP _mktemp
#define UNLINK _unlink
#else
Expand Down
2 changes: 2 additions & 0 deletions test/test_offset.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "minunit.h"

#if defined(_WIN32) || defined(_WIN64)
#include <io.h>

#define MKTEMP _mktemp
#define UNLINK _unlink
#else
Expand Down
2 changes: 2 additions & 0 deletions test/test_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "minunit.h"

#if defined(_WIN32) || defined(_WIN64)
#include <io.h>

#define MKTEMP _mktemp
#else
#define MKTEMP mkstemp
Expand Down
2 changes: 2 additions & 0 deletions test/test_permissions.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include "minunit.h"

#if defined(_WIN32) || defined(_WIN64)
#include <io.h>

#define MKTEMP _mktemp
#define UNLINK _unlink
#else
Expand Down
2 changes: 2 additions & 0 deletions test/test_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "minunit.h"

#if defined(_WIN32) || defined(_WIN64)
#include <io.h>

#define MKTEMP _mktemp
#else
#define MKTEMP mkstemp
Expand Down
2 changes: 2 additions & 0 deletions test/test_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "minunit.h"

#if defined(_WIN32) || defined(_WIN64)
#include <io.h>

#define MKTEMP _mktemp
#define UNLINK _unlink
#else
Expand Down

0 comments on commit 209840b

Please sign in to comment.