Skip to content
Snippets Groups Projects
Commit 468b9210 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Using dllimport on Win32 when not building Opus

parent d7f6700f
No related branches found
No related tags found
No related merge requests found
......@@ -35,11 +35,21 @@ extern "C" {
#endif
#if defined(__GNUC__) && defined(OPUS_BUILD)
#define OPUS_EXPORT __attribute__ ((visibility ("default")))
# define OPUS_EXPORT __attribute__ ((visibility ("default")))
#elif defined(WIN32)
#define OPUS_EXPORT __declspec(dllexport)
# ifdef OPUS_BUILD
# define OPUS_EXPORT __declspec(dllexport)
# else
# define OPUS_EXPORT __declspec(dllimport)
# endif
#else
#define OPUS_EXPORT
# define OPUS_EXPORT
#endif
#define __check_int(x) (((void)((x) == (int)0)), (int)(x))
......
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