]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Wrap util.h functions in `extern "C"` (#6762)
authorfauxpark <fauxpark@gmail.com>
Thu, 3 Oct 2019 23:24:47 +0000 (09:24 +1000)
committerGitHub <noreply@github.com>
Thu, 3 Oct 2019 23:24:47 +0000 (09:24 +1000)
tmk_core/common/util.h

index 5706b047d060c86dd319accbc9be89f4b487cd07..68642e7fd3f13dfb17de939bd3ca712367476fd7 100644 (file)
@@ -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