File lcms-1.19-windows.patch of Package mingw64-lcms

--- lcms-1.19/configure.ac	2009-07-17 16:29:35.000000000 +0200
+++ lcms-1.19/configure.ac	2017-05-31 21:10:28.950948102 +0200
@@ -43,7 +43,7 @@
 
 
 # Obtain system type by running config.guess
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_HOST
 
 # Ensure that make can run correctly
 AM_SANITY_CHECK
--- lcms-1.19/include/lcms.h	2009-10-30 16:57:45.000000000 +0100
+++ lcms-1.19/include/lcms.h	2017-05-31 21:12:11.090948488 +0200
@@ -32,9 +32,9 @@
 // USE_FLOAT are the generic floating-point routines. USE_C should work on
 // virtually any machine.
 
-//#define USE_FLOAT        1
+#define USE_FLOAT        1
 // #define USE_C            1
-#define USE_ASSEMBLER    1
+// #define USE_ASSEMBLER    1
 
 // Define this if you are using this package as a DLL (windows only)
 
@@ -43,7 +43,7 @@
 
 // Uncomment if you are trying the engine in a non-windows environment
 // like linux, SGI, VAX, FreeBSD, BeOS, etc. 
-#define NON_WINDOWS  1
+// #define NON_WINDOWS  1
 
 // Uncomment this one if you are using big endian machines (only meaningful
 // when NON_WINDOWS is used)
@@ -225,6 +225,8 @@
 
 #else
 
+#define cdecl
+
 // Win32 stuff
 
 #ifndef WIN32_LEAN_AND_MEAN
@@ -247,8 +249,12 @@
 #  endif
 #endif
 
+#ifndef __MINGW32__
 // This works for both VC & BorlandC
 #define LCMS_INLINE __inline
+#else
+#define LCMS_INLINE static inline
+#endif
 
 #ifdef USE_PTHREADS
 typedef CRITICAL_SECTION LCMS_RWLOCK_T;
openSUSE Build Service is sponsored by