diff options
author | Jacek Caban <jacek@codeweavers.com> | 2013-06-17 10:09:57 -0700 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2013-06-17 10:12:28 -0700 |
commit | 1f26ee2bbd7ae5447b71a78641bb60e58162d68e (patch) | |
tree | 38ca1a2282741180762107ccd4576a180fb72ab1 /include | |
parent | 0d95b3b48cb0f852b22693bcf49ed4f0e604def3 (diff) | |
download | opus-1f26ee2bbd7ae5447b71a78641bb60e58162d68e.tar.gz |
Use __declspec(dllexport) on mingw build.
Signed-off-by: Gregory Maxwell <greg@xiph.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/opus_defines.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 |