Skip to content
Snippets Groups Projects
Commit 1f26ee2b authored by Jacek Caban's avatar Jacek Caban Committed by Gregory Maxwell
Browse files

Use __declspec(dllexport) on mingw build.


Signed-off-by: default avatarGregory Maxwell <greg@xiph.org>
parent 0d95b3b4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment