Skip to content

Commit

Permalink
fix: Add c++ extern prototypes in noscrypt.h
Browse files Browse the repository at this point in the history
  • Loading branch information
VnUgE committed May 26, 2024
1 parent aeaac8d commit 72e1b7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/noscrypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
#ifndef NOSCRYPT_H
#define NOSCRYPT_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
#include <stddef.h>
#include "platform.h"
Expand Down Expand Up @@ -574,4 +578,8 @@ NC_EXPORT NCResult NCComputeMac(
uint8_t hmacOut[NC_ENCRYPTION_MAC_SIZE]
);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* !NOSCRYPT_H */

0 comments on commit 72e1b7b

Please sign in to comment.