From 1f26ee2bbd7ae5447b71a78641bb60e58162d68e Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 17 Jun 2013 10:09:57 -0700 Subject: Use __declspec(dllexport) on mingw build. Signed-off-by: Gregory Maxwell --- include/opus_defines.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/opus_defines.h b/include/opus_defines.h index 00918b89..d101482d 100644 --- a/include/opus_defines.h +++ b/include/opus_defines.h @@ -64,14 +64,14 @@ extern "C" { /**Export control for opus functions */ #ifndef OPUS_EXPORT -# if defined(__GNUC__) && defined(OPUS_BUILD) -# define OPUS_EXPORT __attribute__ ((visibility ("default"))) -# elif defined(WIN32) && !defined(__MINGW32__) +# if defined(WIN32) # ifdef OPUS_BUILD # define OPUS_EXPORT __declspec(dllexport) # else # define OPUS_EXPORT # endif +# elif defined(__GNUC__) && defined(OPUS_BUILD) +# define OPUS_EXPORT __attribute__ ((visibility ("default"))) # else # define OPUS_EXPORT # endif -- cgit v1.2.1