components/lcms/patches/003-icc34.h.in.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 174 187aa0541610
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers

--- include/icc34.h.in	2007-05-25 07:04:02.000000000 -0700
+++ include/icc34.h.in	2011-03-29 16:11:47.693553324 -0700
@@ -144,7 +144,7 @@
  */
 
 
-#ifdef PACKAGE_NAME
+#if !defined(HAVE_INTTYPES_H) || !defined(HAVE_STDINT_H)
 /*
   June 9, 2003, Adapted for use with configure by Bob Friesenhahn
   Added the stupid check for autoconf by Marti Maria. 
@@ -214,6 +214,8 @@
 
 #if defined (__MINGW) || defined(__MINGW32__)
 #include <stdint.h>
+#elif defined(_sun)
+#include <inttypes.h>
 #endif