]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
introduced ZSTDLIB_VISIBILITY
authorPrzemyslaw Skibinski <inikep@gmail.com>
Thu, 15 Dec 2016 10:32:31 +0000 (11:32 +0100)
committerPrzemyslaw Skibinski <inikep@gmail.com>
Thu, 15 Dec 2016 10:32:31 +0000 (11:32 +0100)
.travis.yml
lib/zstd.h

index 148a98f1ba0bb903b4bd1249cc65549be1afdfea..c2817c48edd91d66ce8570547902c01d9bf0178a 100644 (file)
@@ -8,7 +8,7 @@ matrix:
 
 
     # Container-based Ubuntu 12.04 LTS Server Edition 64 bit (doesn't support 32-bit includes)
-    - env: Ubu=12.04cont Cmd="make test && make clean && make travis-install"
+    - env: Ubu=12.04cont Cmd="make test && make clean && make travis-install && make -C tests fullbench-dll fullbench-lib"
       os: linux
       sudo: false
 
index b02e16b42f7f0eb98d9edec45d34016007d5374c..976d41e16025388efa829e1f1e5406b99808df34 100644 (file)
@@ -18,15 +18,19 @@ extern "C" {
 #include <stddef.h>   /* size_t */
 
 
+/* =====   ZSTDLIB_API : control library symbols visibility   ===== */
 /* =====   ZSTDLIB_API : control library symbols visibility   ===== */
 #if defined(__GNUC__) && (__GNUC__ >= 4)
-#  define ZSTDLIB_API __attribute__ ((visibility ("default")))
-#elif defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1)
-#  define ZSTDLIB_API __declspec(dllexport)
+#  define ZSTDLIB_VISIBILITY __attribute__ ((visibility ("default")))
+#else
+#  define ZSTDLIB_VISIBILITY
+#endif
+#if defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1)
+#  define ZSTDLIB_API __declspec(dllexport) ZSTDLIB_VISIBILITY
 #elif defined(ZSTD_DLL_IMPORT) && (ZSTD_DLL_IMPORT==1)
-#  define ZSTDLIB_API __declspec(dllimport) /* It isn't required but allows to generate better code, saving a function pointer load from the IAT and an indirect jump.*/
+#  define ZSTDLIB_API __declspec(dllimport) ZSTDLIB_VISIBILITY /* It isn't required but allows to generate better code, saving a function pointer load from the IAT and an indirect jump.*/
 #else
-#  define ZSTDLIB_API
+#  define ZSTDLIB_API ZSTDLIB_VISIBILITY
 #endif