Skip to content

Commit

Permalink
Fix GCC 10 multiple definition bug
Browse files Browse the repository at this point in the history
  • Loading branch information
audiohacked committed May 25, 2020
1 parent 9c1ae73 commit d600c7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/logic/scan.h
Expand Up @@ -27,7 +27,9 @@ struct corsair_device_scan

/** libusb device structures */
struct libusb_device_handle* handle;
} scanlist[10];
};

extern struct corsair_device_scan scanlist[10];

int
corsairlink_handle_close( struct libusb_device_handle* handle );
Expand Down
1 change: 1 addition & 0 deletions logic/scan.c
Expand Up @@ -32,6 +32,7 @@
#include <unistd.h>

int scanlist_count = 0;
struct corsair_device_scan scanlist[10];

int
corsairlink_handle_close( struct libusb_device_handle* handle )
Expand Down

0 comments on commit d600c7f

Please sign in to comment.