~ruther/qmk_firmware

41b9be560d68a69a0c87d90e94700082e1cbbd3a — fauxpark 6 years ago 4f01c86
Wrap util.h functions in `extern "C"` (#6762)

1 files changed, 8 insertions(+), 0 deletions(-)

M tmk_core/common/util.h
M tmk_core/common/util.h => tmk_core/common/util.h +8 -0
@@ 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