Skip to content

Commit

Permalink
Fix compilation error, by adding extern keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Sapd committed Nov 13, 2021
1 parent d5c6956 commit ad3f125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ enum capabilities {
};

/// Long name of every capability
const char* const capabilities_str[NUM_CAPABILITIES];
extern const char* const capabilities_str[NUM_CAPABILITIES];
/// Short name of every capability
const char capabilities_str_short[NUM_CAPABILITIES];
extern const char capabilities_str_short[NUM_CAPABILITIES];

struct capability_detail {
// Usage page, only used when usageid is not 0; HID Protocol specific
Expand Down

0 comments on commit ad3f125

Please sign in to comment.