Reported by Jason Hecker:

* usbasp.c (libusb_to_errno): Conditionalize some error codes
that apparently are lacking on MinGW.



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@982 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2011-08-26 05:46:50 +00:00
parent fda14b69ec
commit a97f200ff7
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2011-08-26 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
Reported by Jason Hecker:
* usbasp.c (libusb_to_errno): Conditionalize some error codes
that apparently are lacking on MinGW.
2011-08-25 Joerg Wunsch <j.gnu@uriah.heep.sax.de> 2011-08-25 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
Fix warnings. Fix warnings.

View File

@ -77,10 +77,14 @@ static int libusb_to_errno(int result)
return ENOENT; return ENOENT;
case LIBUSB_ERROR_BUSY: case LIBUSB_ERROR_BUSY:
return EBUSY; return EBUSY;
#ifdef ETIMEDOUT
case LIBUSB_ERROR_TIMEOUT: case LIBUSB_ERROR_TIMEOUT:
return ETIMEDOUT; return ETIMEDOUT;
#endif
#ifdef EOVERFLOW
case LIBUSB_ERROR_OVERFLOW: case LIBUSB_ERROR_OVERFLOW:
return EOVERFLOW; return EOVERFLOW;
#endif
case LIBUSB_ERROR_PIPE: case LIBUSB_ERROR_PIPE:
return EPIPE; return EPIPE;
case LIBUSB_ERROR_INTERRUPTED: case LIBUSB_ERROR_INTERRUPTED: