Displaying 2 results from an estimated 2 matches for "91649a5".
Did you mean:
1164905
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
...ed(FLAC_API_EXPORTS) || defined(DLL_EXPORT)
+#define FLAC_API __declspec(dllexport)
#else
-#define FLAC_API _declspec(dllimport)
+#define FLAC_API __declspec(dllimport)
#endif
#elif defined(FLAC__USE_VISIBILITY_ATTR)
diff --git a/include/FLAC++/export.h b/include/FLAC++/export.h
index 11c09e6..91649a5 100644
--- a/include/FLAC++/export.h
+++ b/include/FLAC++/export.h
@@ -59,11 +59,11 @@
#if defined(FLAC__NO_DLL)
#define FLACPP_API
-#elif defined(_MSC_VER)
-#ifdef FLACPP_API_EXPORTS
-#define FLACPP_API _declspec(dllexport)
+#elif defined(_WIN32)
+#if defined(FLACPP_API_EXPORTS) || defined(DLL...
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
The following patch changes export.h so that the dllimport/dllexport
attributes work with mingw/mingw-w64 and others:
- changes _declspec keyword to __declspec: the former may not be
defined by some toolchains.
- changes the _MSC_VER condition to universally _WIN32: MSVC, as well
as GCC supports this.
Attached patch: declspec.diff
Regards.
--
O.S.
-------------- next part --------------