Skip to content

Commit c29f8d1

Browse files
authored
Merge pull request #1965 from stefanrueger/usbdevs
Remove #include "usbdevs.h" from libavrdude.h
2 parents 774fbc8 + 43f3b45 commit c29f8d1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/developer_opts.c

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050

5151
#include "developer_opts.h"
5252
#include "developer_opts_private.h"
53+
#include "usbdevs.h"
5354

5455
// Inject part parameters into a semi-automated rewrite of avrdude.conf
5556
// - Add entries to the tables below; they get written on -p*/si or -c*/si

src/libavrdude.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ typedef struct {
18451845
Dis_symbol *dis_symbols;
18461846

18471847
// Static variables from usb_libusb.c
1848-
#include "usbdevs.h"
1848+
#define USBDEV_MAX_XFER_3 912 // Trust compiler complains if usbdevs.h redefines this
18491849
char usb_buf[USBDEV_MAX_XFER_3];
18501850
int usb_buflen, usb_bufptr; // @@@ Check whether usb_buflen needs initialising with -1
18511851
int usb_interface;

0 commit comments

Comments
 (0)