From 4f7c64e3e2bbafd378277f1648de28573c263878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 29 Nov 2005 17:29:04 +0000 Subject: moved configuration from compiler-arguments into zexyconf.h only build regex if there is a regex.h in the system svn path=/trunk/externals/zexy/; revision=4080 --- src/lpt.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/lpt.c') diff --git a/src/lpt.c b/src/lpt.c index 4b95af4..d0d5b1b 100644 --- a/src/lpt.c +++ b/src/lpt.c @@ -46,12 +46,12 @@ # include # include -# ifdef HAVE_PPDEV +# ifdef HAVE_LINUX_PPDEV_H # include # include # include # include -# endif /* HAVE_PPDEV */ +# endif /* HAVE_LINUX_PPDEV_H */ # ifdef __WIN32__ @@ -112,7 +112,7 @@ static void lpt_float(t_lpt *x, t_floatarg f) { unsigned char b = f; #ifdef Z_WANT_LPT -# ifdef HAVE_PPDEV +# ifdef HAVE_LINUX_PPDEV_H if (x->device>0){ ioctl (x->device, PPWDATA, &b); } else @@ -126,7 +126,7 @@ static void lpt_float(t_lpt *x, t_floatarg f) static void lpt_control(t_lpt *x, t_floatarg f) { unsigned char b = f; -# ifdef HAVE_PPDEV +# ifdef HAVE_LINUX_PPDEV_H if (x->device>0){ ioctl (x->device, PPWCONTROL, &b); } else @@ -140,7 +140,7 @@ static void lpt_control(t_lpt *x, t_floatarg f) static void lpt_bang(t_lpt *x) { -# ifdef HAVE_PPDEV +# ifdef HAVE_LINUX_PPDEV_H if (x->device>0){ unsigned char b=0; ioctl (x->device, PPRCONTROL, &b); @@ -196,7 +196,7 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv) x->device=-1; x->port=strtol(devname, 0, 16); if(0==x->port){ -#ifdef HAVE_PPDEV +#ifdef HAVE_LINUX_PPDEV_H x->device = open(devname, O_RDWR); if(x->device<=0){ error("lpt: bad device %s", devname); @@ -208,7 +208,7 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv) x->device=-1; } } -#endif /* HAVE_PPDEV */ +#endif /* HAVE_LINUX_PPDEV_H */ } } @@ -260,7 +260,7 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv) static void lpt_free(t_lpt *x) { #ifdef Z_WANT_LPT -# ifdef HAVE_PPDEV +# ifdef HAVE_LINUX_PPDEV_H if (x->device>0){ ioctl (x->device, PPRELEASE); close(x->device); -- cgit v1.2.1