aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-06-09 12:24:57 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-06-09 12:24:57 +0000
commita3bdd152a9b72d6de71a52e261ce83dba3a5eb13 (patch)
treef88b61b1edc153e26fdb0c56c6068aca81459ec5
parent3c7a6d78f887ffc0404041c9265db6f715f5291c (diff)
probably fixed a bug with wrong defines
svn path=/trunk/externals/zexy/; revision=3142
-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;