diff options
-rw-r--r-- | Android.mk | 3 | ||||
-rw-r--r-- | pngconf.h | 6 |
2 files changed, 7 insertions, 2 deletions
@@ -22,7 +22,8 @@ common_SRC_FILES := \ pngwtran.c \ pngwutil.c -common_CFLAGS := ## -fomit-frame-pointer +common_CFLAGS := \ + -fvisibility=hidden ## -fomit-frame-pointer common_C_INCLUDES += \ @@ -1505,7 +1505,11 @@ typedef z_stream FAR * png_zstreamp; # define PNGAPI #endif #ifndef PNG_IMPEXP -# define PNG_IMPEXP +# if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) +# define PNG_IMPEXP __attribute__((visibility ("default"))) +# else +# define PNG_IMPEXP +# endif #endif #ifdef PNG_BUILDSYMS |