aboutsummaryrefslogtreecommitdiff
path: root/src/lpt.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-11-29 17:29:04 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-11-29 17:29:04 +0000
commit4f7c64e3e2bbafd378277f1648de28573c263878 (patch)
treec3a4ee8ff19a6c3f83a2761c77b62f3956198100 /src/lpt.c
parent77c4cc40647f91852ccf2225d178ad77286ac376 (diff)
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
Diffstat (limited to 'src/lpt.c')
-rw-r--r--src/lpt.c16
1 files changed, 8 insertions, 8 deletions
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 <stdlib.h>
# include <errno.h>
-# ifdef HAVE_PPDEV
+# ifdef HAVE_LINUX_PPDEV_H
# include <sys/ioctl.h>
# include <linux/ppdev.h>
# include <linux/parport.h>
# include <fcntl.h>
-# 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);