Add C linkage guard for exported symbols

This commit is contained in:
Juha Nikkanen
2019-08-12 15:06:24 +03:00
parent 9307c4465f
commit 738f7fd54a

View File

@@ -15,6 +15,10 @@
// We also write this in one go to the Keccak sponge, which is at most 1600 bits
#define BUFLEN 512u
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(_WIN32)
struct infnoise_context {
struct ftdi_context ftdic;
@@ -87,4 +91,8 @@ void deinitInfnoise(struct infnoise_context *context);
*/
uint32_t readData(struct infnoise_context *context, uint8_t *result, bool raw, uint32_t outputMultiplier);
#ifdef __cplusplus
}
#endif
#endif