diff options
author | fauxpark <fauxpark@gmail.com> | 2019-10-04 09:24:47 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-04 09:24:47 +1000 |
commit | 41b9be560d68a69a0c87d90e94700082e1cbbd3a (patch) | |
tree | 04e7c4a87efcfbc1c0b558bb78ac9dcd9135f5bc | |
parent | 4f01c8623fe48da0c3a4ef98f63af442c1978816 (diff) | |
download | qmk_firmware-41b9be560d68a69a0c87d90e94700082e1cbbd3a.tar.gz qmk_firmware-41b9be560d68a69a0c87d90e94700082e1cbbd3a.zip |
Wrap util.h functions in `extern "C"` (#6762)
-rw-r--r-- | tmk_core/common/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tmk_core/common/util.h b/tmk_core/common/util.h index 5706b047d..68642e7fd 100644 --- a/tmk_core/common/util.h +++ b/tmk_core/common/util.h | |||
@@ -27,6 +27,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
27 | #define STR(s) XSTR(s) | 27 | #define STR(s) XSTR(s) |
28 | #define XSTR(s) #s | 28 | #define XSTR(s) #s |
29 | 29 | ||
30 | #ifdef __cplusplus | ||
31 | extern "C" { | ||
32 | #endif | ||
33 | |||
30 | uint8_t bitpop(uint8_t bits); | 34 | uint8_t bitpop(uint8_t bits); |
31 | uint8_t bitpop16(uint16_t bits); | 35 | uint8_t bitpop16(uint16_t bits); |
32 | uint8_t bitpop32(uint32_t bits); | 36 | uint8_t bitpop32(uint32_t bits); |
@@ -39,4 +43,8 @@ uint8_t bitrev(uint8_t bits); | |||
39 | uint16_t bitrev16(uint16_t bits); | 43 | uint16_t bitrev16(uint16_t bits); |
40 | uint32_t bitrev32(uint32_t bits); | 44 | uint32_t bitrev32(uint32_t bits); |
41 | 45 | ||
46 | #ifdef __cplusplus | ||
47 | } | ||
48 | #endif | ||
49 | |||
42 | #endif | 50 | #endif |