aboutsummaryrefslogtreecommitdiff
path: root/src/sfrecord.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sfrecord.c')
-rw-r--r--src/sfrecord.c11
1 files changed, 5 insertions, 6 deletions
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;