diff --git a/par.c b/par.c index 3292e2c0..b642acf3 100644 --- a/par.c +++ b/par.c @@ -34,6 +34,8 @@ # include "linux_ppdev.h" #elif defined(__sun__) && defined(__svr4__) /* Solaris */ # include "solaris_ecpp.h" +#elif defined(WIN32NATIVE) +# include "win_ppdev.h" #endif #include "avr.h" diff --git a/ppi.c b/ppi.c index ee191466..a6158492 100644 --- a/ppi.c +++ b/ppi.c @@ -19,6 +19,9 @@ /* $Id$ */ + +#if !defined(WIN32NATIVE) + #include "ac_cfg.h" #if HAVE_PARPORT @@ -228,3 +231,4 @@ void ppi_close(int fd) #endif /* HAVE_PARPORT */ +#endif /* !WIN32NATIVE */ \ No newline at end of file diff --git a/win_ppdev.h b/win_ppdev.h new file mode 100644 index 00000000..621665ea --- /dev/null +++ b/win_ppdev.h @@ -0,0 +1,7 @@ +#ifndef win32native_ppdev_h__ +#define win32native_ppdev_h__ + +#define ppi_claim(pgm) +#define ppi_release(pgm) + +#endif win32native_ppdev_h__