aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2019-10-07 18:56:59 +0300
committerGitHub <noreply@github.com>2019-10-07 18:56:59 +0300
commitddaa6e43181634a4bce08f25ed5ecc0c9af94998 (patch)
tree48341f9823ff97334d1a76cccf83b471a8bfe7d7
parente012be6a2e6938676a2c97cfdd22affb43b5565f (diff)
parent1dafce77253cd9f1f1a636e095c3dbf913b86ab6 (diff)
downloadlibgha-ddaa6e43181634a4bce08f25ed5ecc0c9af94998.tar.gz
Merge pull request #1 from rogovsky/dev
Minor changes
-rw-r--r--include/libgha.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/libgha.h b/include/libgha.h
index c6834db..f3221f8 100644
--- a/include/libgha.h
+++ b/include/libgha.h
@@ -1,5 +1,10 @@
#ifndef LIBGHA_H
-#define LIBGHA_h
+#define LIBGHA_H
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif /* __cplusplus */
#define FLOAT float
@@ -81,4 +86,8 @@ int gha_adjust_info(const FLOAT* pcm, struct gha_info* info, size_t k, gha_ctx_t
*/
void gha_set_user_resuidal_cb(void (*cb)(FLOAT* resuidal, size_t size, void* user_ctx), void* user_ctx, gha_ctx_t ctx);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif