summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-10-04 09:24:47 +1000
committerFlorian Didron <fdidron@users.noreply.github.com>2019-11-04 16:54:55 +0900
commit4175e3cbe80a1a5c816a9362b102da01944ad8e5 (patch)
tree90f862b652cf99f4f320bb4ca48101deff617fb3 /tmk_core
parentf62a4e3ec466610924af3f9b16c9cfb48dfba156 (diff)
Wrap util.h functions in `extern "C"` (#6762)
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/common/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tmk_core/common/util.h b/tmk_core/common/util.h
index 5706b047d0..68642e7fd3 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/>.
#define STR(s) XSTR(s)
#define XSTR(s) #s
+#ifdef __cplusplus
+extern "C" {
+#endif
+
uint8_t bitpop(uint8_t bits);
uint8_t bitpop16(uint16_t bits);
uint8_t bitpop32(uint32_t bits);
@@ -39,4 +43,8 @@ uint8_t bitrev(uint8_t bits);
uint16_t bitrev16(uint16_t bits);
uint32_t bitrev32(uint32_t bits);
+#ifdef __cplusplus
+}
+#endif
+
#endif