mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 10:39:09 +00:00
Wrap util.h functions in extern "C"
(#6762)
This commit is contained in:
parent
4f01c8623f
commit
41b9be560d
1 changed files with 8 additions and 0 deletions
|
@ -27,6 +27,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define STR(s) XSTR(s)
|
#define STR(s) XSTR(s)
|
||||||
#define XSTR(s) #s
|
#define XSTR(s) #s
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
uint8_t bitpop(uint8_t bits);
|
uint8_t bitpop(uint8_t bits);
|
||||||
uint8_t bitpop16(uint16_t bits);
|
uint8_t bitpop16(uint16_t bits);
|
||||||
uint8_t bitpop32(uint32_t bits);
|
uint8_t bitpop32(uint32_t bits);
|
||||||
|
@ -39,4 +43,8 @@ uint8_t bitrev(uint8_t bits);
|
||||||
uint16_t bitrev16(uint16_t bits);
|
uint16_t bitrev16(uint16_t bits);
|
||||||
uint32_t bitrev32(uint32_t bits);
|
uint32_t bitrev32(uint32_t bits);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue