Skip to content

Commit 125d8a5

Browse files
j-schultzpetterreinholdtsen
authored andcommitted
fix inclusion of rnnoise.h into C++ code
1 parent bd7a29c commit 125d8a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/rnnoise.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030

3131
#include <stdio.h>
3232

33+
#ifdef __cplusplus
34+
extern "C" {
35+
#endif
3336

3437
#ifndef RNNOISE_EXPORT
3538
# if defined(WIN32)
@@ -62,4 +65,8 @@ RNNOISE_EXPORT RNNModel *rnnoise_model_from_file(FILE *f);
6265

6366
RNNOISE_EXPORT void rnnoise_model_free(RNNModel *model);
6467

68+
#ifdef __cplusplus
69+
}
70+
#endif
71+
6572
#endif

0 commit comments

Comments
 (0)