mirror of
https://github.com/shadps4-emu/ext-libusb.git
synced 2026-01-31 00:55:21 +01:00
C++ header safety
Pointed out by JF
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
#include <stdint.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* standard USB stuff */
|
||||
|
||||
/* Device and/or Interface Class codes */
|
||||
@@ -261,4 +265,8 @@ int libusb_interrupt_transfer(libusb_dev_handle *devh,
|
||||
struct libusb_bulk_transfer *transfer, int *transferred,
|
||||
unsigned int timeout);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user