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
This commit is contained in:
c_oflynn 2005-11-25 14:46:43 +00:00
parent 9a1fdca704
commit d1a771ed78
3 changed files with 13 additions and 0 deletions

2
par.c
View File

@ -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"

4
ppi.c
View File

@ -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 */

7
win_ppdev.h Normal file
View File

@ -0,0 +1,7 @@
#ifndef win32native_ppdev_h__
#define win32native_ppdev_h__
#define ppi_claim(pgm)
#define ppi_release(pgm)
#endif win32native_ppdev_h__