Fix a conflict between w32api's basetsd.h and jmorecfg.h
There's a conflict between basetsd.h (w32api) and jmorecfg.h Both contain a definition for the data type INT32, but they're different from each other (signed int vs. long). Added a patch which makes the library use the data type signed int for INT32
This commit is contained in:
parent
f690518761
commit
9a24fbe474
16
libjpeg-turbo-dont-conflict-with-basetsd-h.diff
Normal file
16
libjpeg-turbo-dont-conflict-with-basetsd-h.diff
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
--- win/jconfig.h.in.orig 2011-06-03 20:17:01.918582804 +0200
|
||||||
|
+++ win/jconfig.h.in 2011-06-03 20:19:23.622100937 +0200
|
||||||
|
@@ -25,7 +25,14 @@
|
||||||
|
#endif
|
||||||
|
#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
|
||||||
|
|
||||||
|
+/* Define "INT32" as int, not long, per Windows custom */
|
||||||
|
+#ifndef _BASETSD_H_ /* don't conflict if basetsd.h already read */
|
||||||
|
+typedef short INT16;
|
||||||
|
+typedef signed int INT32;
|
||||||
|
+#endif
|
||||||
|
+#define XMD_H /* prevent jmorecfg.h from redefining it */
|
||||||
|
+
|
||||||
|
#define inline __inline
|
||||||
|
|
||||||
|
#ifdef JPEG_INTERNALS
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
Name: mingw-libjpeg-turbo
|
Name: mingw-libjpeg-turbo
|
||||||
Version: 1.1.1
|
Version: 1.1.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: MinGW Windows Libjpeg-turbo library
|
Summary: MinGW Windows Libjpeg-turbo library
|
||||||
|
|
||||||
License: wxWidgets
|
License: wxWidgets
|
||||||
@ -16,6 +16,12 @@ URL: http://libjpeg-turbo.virtualgl.org/
|
|||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source0: http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-%{version}.tar.gz
|
Source0: http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-%{version}.tar.gz
|
||||||
|
|
||||||
|
# There's a conflict between basetsd.h (w32api) and jmorecfg.h
|
||||||
|
# Both contain a definition for the data type INT32, but they're
|
||||||
|
# different from each other (signed int vs. long)
|
||||||
|
# This patch makes the library use the data type signed int for INT32
|
||||||
|
Patch0: libjpeg-turbo-dont-conflict-with-basetsd-h.diff
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: mingw32-filesystem >= 68
|
BuildRequires: mingw32-filesystem >= 68
|
||||||
@ -55,6 +61,7 @@ Static version of the MinGW Windows cross compiled Libjpeg-turbo library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n libjpeg-turbo-%{version}
|
%setup -q -n libjpeg-turbo-%{version}
|
||||||
|
%patch0 -p0
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -101,6 +108,10 @@ chmod -x README-turbo.txt
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 3 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.1.1-4
|
||||||
|
- Fix a conflict between w32api's basetsd.h and jmorecfg.h (conflicting
|
||||||
|
declarations for INT32)
|
||||||
|
|
||||||
* Thu Jun 2 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.1.1-3
|
* Thu Jun 2 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.1.1-3
|
||||||
- Moved the obsoletes/provides to the right location
|
- Moved the obsoletes/provides to the right location
|
||||||
- Bundle the licence and other %%doc's
|
- Bundle the licence and other %%doc's
|
||||||
|
Loading…
Reference in New Issue
Block a user