Skip to content

Commit 4ce19d8

Browse files
committed
playmus, playwave: revise condition for unistd.h include
1 parent 141b69c commit 4ce19d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

playmus.c

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

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

playwave.c

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

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

0 commit comments

Comments
 (0)