< prev index next >

src/java.desktop/share/native/libsplashscreen/libpng/pngpriv.h

Print this page
rev 51332 : 8209115: adjust libsplashscreen linux ppc64le builds for easier libpng update


 273 #if PNG_MIPS_MSA_OPT > 0
 274 #  define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_msa
 275 #  ifndef PNG_MIPS_MSA_IMPLEMENTATION
 276 #     if defined(__mips_msa)
 277 #        if defined(__clang__)
 278 #        elif defined(__GNUC__)
 279 #           if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
 280 #              define PNG_MIPS_MSA_IMPLEMENTATION 2
 281 #           endif /* no GNUC support */
 282 #        endif /* __GNUC__ */
 283 #     else /* !defined __mips_msa */
 284 #        define PNG_MIPS_MSA_IMPLEMENTATION 2
 285 #     endif /* __mips_msa */
 286 #  endif /* !PNG_MIPS_MSA_IMPLEMENTATION */
 287 
 288 #  ifndef PNG_MIPS_MSA_IMPLEMENTATION
 289 #     define PNG_MIPS_MSA_IMPLEMENTATION 1
 290 #  endif
 291 #endif /* PNG_MIPS_MSA_OPT > 0 */
 292 
 293 #ifdef PNG_POWERPC_VSX_API_SUPPORTED
 294 #if PNG_POWERPC_VSX_OPT > 0
 295 #  define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_vsx
 296 #  define PNG_POWERPC_VSX_IMPLEMENTATION 1
 297 #endif
 298 #endif
 299 
 300 
 301 /* Is this a build of a DLL where compilation of the object modules requires
 302  * different preprocessor settings to those required for a simple library?  If
 303  * so PNG_BUILD_DLL must be set.
 304  *
 305  * If libpng is used inside a DLL but that DLL does not export the libpng APIs
 306  * PNG_BUILD_DLL must not be set.  To avoid the code below kicking in build a
 307  * static library of libpng then link the DLL against that.
 308  */
 309 #ifndef PNG_BUILD_DLL
 310 #  ifdef DLL_EXPORT
 311       /* This is set by libtool when files are compiled for a DLL; libtool
 312        * always compiles twice, even on systems where it isn't necessary.  Set
 313        * PNG_BUILD_DLL in case it is necessary:
 314        */
 315 #     define PNG_BUILD_DLL
 316 #  else
 317 #     ifdef _WINDLL
 318          /* This is set by the Microsoft Visual Studio IDE in projects that
 319           * build a DLL.  It can't easily be removed from those projects (it




 273 #if PNG_MIPS_MSA_OPT > 0
 274 #  define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_msa
 275 #  ifndef PNG_MIPS_MSA_IMPLEMENTATION
 276 #     if defined(__mips_msa)
 277 #        if defined(__clang__)
 278 #        elif defined(__GNUC__)
 279 #           if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
 280 #              define PNG_MIPS_MSA_IMPLEMENTATION 2
 281 #           endif /* no GNUC support */
 282 #        endif /* __GNUC__ */
 283 #     else /* !defined __mips_msa */
 284 #        define PNG_MIPS_MSA_IMPLEMENTATION 2
 285 #     endif /* __mips_msa */
 286 #  endif /* !PNG_MIPS_MSA_IMPLEMENTATION */
 287 
 288 #  ifndef PNG_MIPS_MSA_IMPLEMENTATION
 289 #     define PNG_MIPS_MSA_IMPLEMENTATION 1
 290 #  endif
 291 #endif /* PNG_MIPS_MSA_OPT > 0 */
 292 

 293 #if PNG_POWERPC_VSX_OPT > 0
 294 #  define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_vsx
 295 #  define PNG_POWERPC_VSX_IMPLEMENTATION 1
 296 #endif


 297 
 298 /* Is this a build of a DLL where compilation of the object modules requires
 299  * different preprocessor settings to those required for a simple library?  If
 300  * so PNG_BUILD_DLL must be set.
 301  *
 302  * If libpng is used inside a DLL but that DLL does not export the libpng APIs
 303  * PNG_BUILD_DLL must not be set.  To avoid the code below kicking in build a
 304  * static library of libpng then link the DLL against that.
 305  */
 306 #ifndef PNG_BUILD_DLL
 307 #  ifdef DLL_EXPORT
 308       /* This is set by libtool when files are compiled for a DLL; libtool
 309        * always compiles twice, even on systems where it isn't necessary.  Set
 310        * PNG_BUILD_DLL in case it is necessary:
 311        */
 312 #     define PNG_BUILD_DLL
 313 #  else
 314 #     ifdef _WINDLL
 315          /* This is set by the Microsoft Visual Studio IDE in projects that
 316           * build a DLL.  It can't easily be removed from those projects (it


< prev index next >