core headers: Add C++ linker compatibility

This commit is contained in:
Angus Gratton 2015-10-05 18:33:32 +11:00
parent 65307aed75
commit afd58bc1ff
5 changed files with 39 additions and 2 deletions

View file

@ -13,10 +13,18 @@
#include <stdint.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Return a random 32-bit number */
uint32_t hwrand(void);
/* Fill a variable size buffer with data from the Hardware RNG */
void hwrand_fill(uint8_t *buf, size_t len);
#ifdef __cplusplus
}
#endif
#endif