shithub: opus

Download patch

ref: 9ce27c564efe9a8074ab6e285051790807a74b9e
parent: d8f1c7093ca0b62e12eee02043507fd458d098d6
author: Gregory Maxwell <[email protected]>
date: Wed May 30 10:36:02 EDT 2012

Fix for building mingw32 apps.

--- a/include/opus_defines.h
+++ b/include/opus_defines.h
@@ -65,7 +65,7 @@
 
 #if defined(__GNUC__) && defined(OPUS_BUILD)
 # define OPUS_EXPORT __attribute__ ((visibility ("default")))
-#elif defined(WIN32)
+#elif defined(WIN32) && !defined(__MINGW32__)
 # ifdef OPUS_BUILD
 #   define OPUS_EXPORT __declspec(dllexport)
 # else