mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 884222 - Use __declspec(dllexport) in Opus on mingw. r=derf
This commit is contained in:
parent
8a348c090d
commit
f67f3ba0b3
@ -72,14 +72,14 @@ extern "C" {
|
||||
/** @cond OPUS_INTERNAL_DOC */
|
||||
/**Export control for opus functions */
|
||||
|
||||
#if defined(__GNUC__) && defined(OPUS_BUILD)
|
||||
# define OPUS_EXPORT __attribute__ ((visibility ("default")))
|
||||
#elif defined(WIN32)
|
||||
#if defined(WIN32)
|
||||
# ifdef OPUS_BUILD
|
||||
# define OPUS_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define OPUS_EXPORT __declspec(dllimport)
|
||||
# endif
|
||||
#elif defined(__GNUC__) && defined(OPUS_BUILD)
|
||||
# define OPUS_EXPORT __attribute__ ((visibility ("default")))
|
||||
#else
|
||||
# define OPUS_EXPORT
|
||||
#endif
|
||||
|
28
media/libopus/mingw.patch
Normal file
28
media/libopus/mingw.patch
Normal file
@ -0,0 +1,28 @@
|
||||
commit 986fb3ec557aa7aeb8788360224708ffa2955072
|
||||
Author: Jacek Caban <jacek@codeweavers.com>
|
||||
Date: Wed Jun 12 17:30:47 2013 +0200
|
||||
|
||||
Use __declspec(dllexport) on mingw build.
|
||||
|
||||
diff --git a/media/libopus/include/opus_defines.h b/media/libopus/include/opus_defines.h
|
||||
index db6b3b7..b64049b 100644
|
||||
--- a/media/libopus/include/opus_defines.h
|
||||
+++ b/media/libopus/include/opus_defines.h
|
||||
@@ -72,14 +72,14 @@ extern "C" {
|
||||
/** @cond OPUS_INTERNAL_DOC */
|
||||
/**Export control for opus functions */
|
||||
|
||||
-#if defined(__GNUC__) && defined(OPUS_BUILD)
|
||||
-# define OPUS_EXPORT __attribute__ ((visibility ("default")))
|
||||
-#elif defined(WIN32)
|
||||
+#if defined(WIN32)
|
||||
# ifdef OPUS_BUILD
|
||||
# define OPUS_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define OPUS_EXPORT __declspec(dllimport)
|
||||
# endif
|
||||
+#elif defined(__GNUC__) && defined(OPUS_BUILD)
|
||||
+# define OPUS_EXPORT __attribute__ ((visibility ("default")))
|
||||
#else
|
||||
# define OPUS_EXPORT
|
||||
#endif
|
@ -65,3 +65,4 @@ sed -e "s/^The git tag\/revision used was .*/The git tag\/revision used was ${ve
|
||||
# apply outstanding local patches
|
||||
patch -p3 < bug776661.patch
|
||||
patch -p1 < padding.patch
|
||||
patch -p3 < mingw.patch
|
||||
|
Loading…
Reference in New Issue
Block a user