diff options
-rw-r--r-- | cdplayer.c | 4 | ||||
-rw-r--r-- | ossmixer.c | 6 | ||||
-rw-r--r-- | promiscous~.c | 7 |
3 files changed, 16 insertions, 1 deletions
@@ -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 @@ -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 |