Skip to content

Commit

Permalink
applications: nrf_desktop: hwid fix c++ compatibility
Browse files Browse the repository at this point in the history
Make hwid header includable from a c++ code.

Signed-off-by: Pawel Dunaj <[email protected]>
  • Loading branch information
pdunaj committed Dec 20, 2024
1 parent 3665a25 commit 365e9e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions applications/nrf_desktop/src/util/hwid.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@

#define HWID_LEN 8

#ifdef __cplusplus
extern "C" {
#endif

void hwid_get(uint8_t *buf, size_t buf_size);

#ifdef __cplusplus
}
#endif

#endif /* _HWID_H_ */

0 comments on commit 365e9e3

Please sign in to comment.