Skip to content

Commit 3026d34

Browse files
committed
playmus, playwave: revise condition for unistd.h include
1 parent 072d3f3 commit 3026d34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/playmus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <stdio.h>
2727
#include <string.h>
2828

29-
#ifdef unix
29+
#if defined(__unix__) || defined(__APPLE__)
3030
#include <unistd.h>
3131
#endif
3232

examples/playwave.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <stdio.h>
2828
#include <string.h>
2929

30-
#ifdef unix
30+
#if defined(__unix__) || defined(__APPLE__)
3131
#include <unistd.h>
3232
#endif
3333

0 commit comments

Comments
 (0)