Index: include/FLAC/export.h |
diff --git a/include/FLAC/export.h b/include/FLAC/export.h |
index a525f29c1e50e24192814a667125c989ba81b4b6..9cc9e137fbfd7e04f92d6c4972935db8a5530c5e 100644 |
--- a/include/FLAC/export.h |
+++ b/include/FLAC/export.h |
@@ -1,5 +1,6 @@ |
/* libFLAC - Free Lossless Audio Codec library |
- * Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson |
+ * Copyright (C) 2000-2009 Josh Coalson |
+ * Copyright (C) 2011-2014 Xiph.Org Foundation |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
@@ -55,25 +56,30 @@ |
* \{ |
*/ |
-#if defined(FLAC__NO_DLL) || !defined(_MSC_VER) |
+#if defined(FLAC__NO_DLL) |
#define FLAC_API |
+#elif defined(_MSC_VER) |
+#ifdef FLAC_API_EXPORTS |
+#define FLAC_API __declspec(dllexport) |
#else |
+#define FLAC_API __declspec(dllimport) |
+#endif |
+ |
+#elif defined(FLAC__USE_VISIBILITY_ATTR) |
+#define FLAC_API __attribute__ ((visibility ("default"))) |
-#ifdef FLAC_API_EXPORTS |
-#define FLAC_API _declspec(dllexport) |
#else |
-#define FLAC_API _declspec(dllimport) |
+#define FLAC_API |
#endif |
-#endif |
/** These #defines will mirror the libtool-based library version number, see |
- * http://www.gnu.org/software/libtool/manual.html#Libtool-versioning |
+ * http://www.gnu.org/software/libtool/manual/libtool.html#Libtool-versioning |
*/ |
-#define FLAC_API_VERSION_CURRENT 10 |
+#define FLAC_API_VERSION_CURRENT 11 |
#define FLAC_API_VERSION_REVISION 0 /**< see above */ |
-#define FLAC_API_VERSION_AGE 2 /**< see above */ |
+#define FLAC_API_VERSION_AGE 3 /**< see above */ |
#ifdef __cplusplus |
extern "C" { |