Exported symbols should not be C++ mangled

This commit is contained in:
Alexandre Lissy 2019-05-10 12:19:17 +02:00
parent 0c56d1111f
commit 5e7ee43174

View File

@ -5,7 +5,7 @@
#if defined _MSC_VER #if defined _MSC_VER
#define DEEPSPEECH_EXPORT extern "C" __declspec(dllexport) #define DEEPSPEECH_EXPORT extern "C" __declspec(dllexport)
#else /*End of _MSC_VER*/ #else /*End of _MSC_VER*/
#define DEEPSPEECH_EXPORT __attribute__ ((visibility("default"))) #define DEEPSPEECH_EXPORT extern "C" __attribute__ ((visibility("default")))
#endif /*End of SWIG*/ #endif /*End of SWIG*/
#else #else
#define DEEPSPEECH_EXPORT #define DEEPSPEECH_EXPORT