From cdf291c5ef541d2d7eddc14ff16340dd0085a517 Mon Sep 17 00:00:00 2001 From: Colin O Flynn Date: Fri, 25 Nov 2005 14:46:43 +0000 Subject: [PATCH] Fixed bug 15051, building for Windows breaks. *par.c: ppi_claim and ppi_release definitions now in a Windows header file *ppi.c: Only included if you are building for Windows *win_ppdev.h: Initial Commit, see par.c CV: ---------------------------------------------------------------------- git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@549 81a1dc3b-b13d-400b-aceb-764788c761c2 --- par.c | 2 ++ ppi.c | 4 ++++ win_ppdev.h | 7 +++++++ 3 files changed, 13 insertions(+) create mode 100644 win_ppdev.h 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__