aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-02-17 03:40:22 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-02-17 03:40:22 +0000
commit56c663dcf1f417a6df6db332a19e22971cb849eb (patch)
treeab80060f902549769227a7887f0acd30c648b5e6
parent9675cefd54146db112051dc9ede05050398c40db (diff)
ifdefed so it only compiles on Linuxdue to linux-specific header files
svn path=/trunk/externals/ext13/; revision=399
-rw-r--r--cdplayer.c4
-rw-r--r--ossmixer.c6
-rw-r--r--promiscous~.c7
3 files changed, 16 insertions, 1 deletions
diff --git a/cdplayer.c b/cdplayer.c
index a6999dc..4622abf 100644
--- a/cdplayer.c
+++ b/cdplayer.c
@@ -1,3 +1,5 @@
+#ifdef LINUX
+
#include "ext13.h"
#include "m_pd.h"
#include <stdio.h>
@@ -174,3 +176,5 @@ void cdplayer_setup(void)
class_addmethod(cdplayer_class, (t_method) cdplayer_stop, gensym("stop"), 0);
class_addmethod(cdplayer_class, (t_method) cdplayer_eject, gensym("eject"), 0);
}
+
+#endif
diff --git a/ossmixer.c b/ossmixer.c
index 3770543..d6d639e 100644
--- a/ossmixer.c
+++ b/ossmixer.c
@@ -1,3 +1,6 @@
+
+#ifdef LINUX
+
#include "ext13.h"
#include "m_pd.h"
#include <stdio.h>
@@ -325,3 +328,6 @@ void ossmixer_setup(void)
class_addmethod(ossmixer_class, (t_method) ossmixer_set_source, gensym("set_source"), A_DEFSYM, 0);
class_addmethod(ossmixer_class, (t_method) ossmixer_set_device, gensym("set_device"), A_DEFFLOAT, 0);
}
+
+
+#endif
diff --git a/promiscous~.c b/promiscous~.c
index 49cc4e5..0c6a9ec 100644
--- a/promiscous~.c
+++ b/promiscous~.c
@@ -1,3 +1,7 @@
+#ifdef LINUX
+// find a replacement for <linux/if_packet.h>
+// then this will work on other UNIXes
+
#include "m_pd.h"
#include "ext13.h"
#include <sys/types.h>
@@ -16,7 +20,6 @@
#include <linux/if_packet.h>
-
/* ------------------------ promiscous_tilde~ ----------------------------- */
@@ -157,3 +160,5 @@ void promiscous_tilde_setup(void)
sizeof(t_promiscous_tilde), CLASS_NOINLET, A_DEFSYM, 0);
class_addmethod(promiscous_tilde_class, (t_method) promiscous_tilde_dsp, gensym("dsp"), 0);
}
+
+#endif