mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 14:35:27 +00:00
More fixes for Solaris, including fixes for the Sunpro compiler:
* avr.h: Remove stray semicolon. * configure.ac: Add check for predefined types uint_t and ulong_t. * confwin.c: Include "avrdude.h" on top to avoid empty translation unit warning. * ppwin.c: (Ditto.) * ser_win32.c: (Ditto.) * serbb_win32.c: (Ditto.) * jtagmkII.c (jtagmkII_recv): remove unreachable "return". * stk500.c (stk500_initialize): (Ditto.) * par.c: Test for both, __sun__ and __sun to see whether we are being compiled on Solaris. * ppi.c: (Ditto.) * stk500v2.c: Implement the DEBUG and DEBUGRECV macros in a way that is compatible with the ISO C99 standard. * usbtiny.c: Only typedef uint_t and ulong_t if they have not been found already by the autoconf checks. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@804 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -41,8 +41,12 @@
|
||||
#if defined(HAVE_LIBUSB) // we use LIBUSB to talk to the board
|
||||
#include <usb.h>
|
||||
|
||||
#ifndef HAVE_UINT_T
|
||||
typedef unsigned int uint_t;
|
||||
#endif
|
||||
#ifndef HAVE_ULONG_T
|
||||
typedef unsigned long ulong_t;
|
||||
#endif
|
||||
|
||||
extern int avr_write_byte_default ( PROGRAMMER* pgm, AVRPART* p,
|
||||
AVRMEM* mem, ulong_t addr,
|
||||
|
Reference in New Issue
Block a user