Made headers compatible with C++.
[BearSSL] / inc / bearssl_rand.h
index 2cc9ace..59628fb 100644 (file)
 #include <stddef.h>
 #include <stdint.h>
 
 #include <stddef.h>
 #include <stdint.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** \file bearssl_rand.h
  *
  * # Pseudo-Random Generators
 /** \file bearssl_rand.h
  *
  * # Pseudo-Random Generators
@@ -249,4 +253,8 @@ br_hmac_drbg_get_hash(const br_hmac_drbg_context *ctx)
        return ctx->digest_class;
 }
 
        return ctx->digest_class;
 }
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
 #endif