Change defined WIN32 1310/head
authorJamaika1 <lukaszcz18@wp.pl>
Mon, 21 Dec 2020 06:59:12 +0000 (07:59 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Dec 2020 06:59:12 +0000 (07:59 +0100)
src/lib/openjp2/openjpeg.h

index 4bbd9a8b2cf9b73d563ae7122fd7ff2a951a4ffd..269ac329ae097fc938b54f8469cf3bd7eeb93a57 100644 (file)
@@ -78,7 +78,7 @@ Most compilers implement their own version of this keyword ...
 
 #if defined(OPJ_STATIC) || !defined(_WIN32)
 /* http://gcc.gnu.org/wiki/Visibility */
-#   if __GNUC__ >= 4
+#   if !defined(_WIN32) && __GNUC__ >= 4
 #       if defined(OPJ_STATIC) /* static library uses "hidden" */
 #           define OPJ_API    __attribute__ ((visibility ("hidden")))
 #       else