File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 638
638
if test " $gcc " -eq 1; then
639
639
echo >> configure.log
640
640
cat > $test .c << EOF
641
- #if ((__GNUC__-0) * 100 + __GNUC_MINOR__-0 >= 303)
642
- # define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
643
- #else
644
- # define ZLIB_INTERNAL
645
- #endif
641
+ #define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
646
642
int ZLIB_INTERNAL foo;
647
643
int main()
648
644
{
649
645
return 0;
650
646
}
651
647
EOF
652
648
if tryboth $CC -c $CFLAGS $test .c; then
649
+ CFLAGS=" $CFLAGS -DHAVE_HIDDEN"
650
+ SFLAGS=" $SFLAGS -DHAVE_HIDDEN"
653
651
echo " Checking for attribute(visibility) support... Yes." | tee -a configure.log
654
652
else
655
- CFLAGS=" $CFLAGS -DNO_VIZ"
656
- SFLAGS=" $SFLAGS -DNO_VIZ"
657
653
echo " Checking for attribute(visibility) support... No." | tee -a configure.log
658
654
fi
659
655
fi
Original file line number Diff line number Diff line change 12
12
# endif
13
13
#endif
14
14
15
- #if (( __GNUC__ - 0 ) * 100 + __GNUC_MINOR__ - 0 ) >= 303 && !defined( NO_VIZ )
15
+ #ifdef HAVE_HIDDEN
16
16
# define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
17
17
#else
18
18
# define ZLIB_INTERNAL
Original file line number Diff line number Diff line change 13
13
#ifndef ZUTIL_H
14
14
#define ZUTIL_H
15
15
16
- #if (( __GNUC__ - 0 ) * 100 + __GNUC_MINOR__ - 0 ) >= 303 && !defined( NO_VIZ )
16
+ #ifdef HAVE_HIDDEN
17
17
# define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
18
18
#else
19
19
# define ZLIB_INTERNAL
You can’t perform that action at this time.
0 commit comments