Skip to content

Commit

Permalink
Wrap util.h functions in extern "C" (#6762)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Oct 3, 2019
1 parent 4f01c86 commit 41b9be5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tmk_core/common/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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

1 comment on commit 41b9be5

@drgsm56
Copy link

@drgsm56 drgsm56 commented on 41b9be5 Oct 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sim unlock

Please sign in to comment.