aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sfplay.c3
-rw-r--r--src/sfrecord.c11
2 files changed, 6 insertions, 8 deletions
diff --git a/src/sfplay.c b/src/sfplay.c
index bdf4fc8..ff8848d 100644
--- a/src/sfplay.c
+++ b/src/sfplay.c
@@ -74,8 +74,7 @@ ritsch@iem.kug.ac.at */
#ifdef __WIN32__
# define BINREADMODE "rb"
-#endif
-#ifdef unix
+#else
# include <unistd.h>
# include <sys/mman.h>
# define BINREADMODE "r"
diff --git a/src/sfrecord.c b/src/sfrecord.c
index c3c7e6c..2420f4b 100644
--- a/src/sfrecord.c
+++ b/src/sfrecord.c
@@ -44,12 +44,11 @@ zmoelnig@iem.kug.ac.at
#define MAX_CHANS 8 /* channels for soundfiles 1,2,4,8 */
#ifdef __WIN32__
-#define BINWRITEMODE "wb"
-#endif
-#ifdef unix
-#include <unistd.h>
-#include <sys/mman.h>
-#define BINWRITEMODE "w"
+# define BINWRITEMODE "wb"
+#else
+# include <unistd.h>
+# include <sys/mman.h>
+# define BINWRITEMODE "w"
#endif
static t_class *sfrecord_class;