aboutsummaryrefslogtreecommitdiff
path: root/src/analysis.c
diff options
context:
space:
mode:
authorMark Harris <mark.hsj@gmail.com>2015-08-07 01:25:35 -0700
committerJean-Marc Valin <jmvalin@jmvalin.ca>2015-08-07 13:25:33 -0400
commit8adff0bb31989deb616ca72d16fc3e791ed91b10 (patch)
treef2731dcf2a4eb4723455d8a3e64579ec53b84c6d /src/analysis.c
parent4feb0dff995205031891036b0686e75fcac2562d (diff)
downloadlibopus-8adff0bb31989deb616ca72d16fc3e791ed91b10.tar.gz
Fix const struct to work with C++ compilation
This allows the libopus source files to be compiled with a C++ compiler, by ensuring that the "extern const MLP net" declaration is visible at the point of the "const MLP net" in src/mlp_data.c. Otherwise it will default to static linkage in C++, resulting in an undefined symbol. Note that if compiled with a C++ compiler the symbols will be mangled, so don't do that if you want to be able to call it from C code or run the tests (which still require a C compiler).
Diffstat (limited to 'src/analysis.c')
-rw-r--r--src/analysis.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/analysis.c b/src/analysis.c
index 2ee85337..401a43e4 100644
--- a/src/analysis.c
+++ b/src/analysis.c
@@ -39,8 +39,6 @@
#include "mlp.h"
#include "stack_alloc.h"
-extern const MLP net;
-
#ifndef M_PI
#define M_PI 3.141592653
#endif