]> git.pld-linux.org Git - packages/DevIL.git/commitdiff
- drop use of 'restrict' keywork
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 29 May 2016 19:23:13 +0000 (21:23 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 29 May 2016 19:23:13 +0000 (21:23 +0200)
DevIL.spec
gcc5.patch [new file with mode: 0644]

index 88d759fc7b678dadb719fe434065937776eda388..2df8041bdc4aebe7b940b4f524093b998a4c7fce 100644 (file)
@@ -27,6 +27,7 @@ Source2:      http://downloads.sourceforge.net/openil/%{name}-docs.tar.gz
 Patch0:                libpng14.patch
 Patch1:                %{name}-squish.patch
 Patch2:                %{name}-as-needed.patch
+Patch3:                gcc5.patch
 URL:           http://openil.sourceforge.net/
 BuildRequires: OpenEXR-devel
 BuildRequires: OpenGL-GLU-devel
@@ -175,6 +176,7 @@ Dokumentacja DevIL.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 cd devil-%{version}
diff --git a/gcc5.patch b/gcc5.patch
new file mode 100644 (file)
index 0000000..5064ad6
--- /dev/null
@@ -0,0 +1,16 @@
+--- DevIL-1.7.8/devil-1.7.8/include/IL/il.h~   2016-05-29 21:20:26.000000000 +0200
++++ DevIL-1.7.8/devil-1.7.8/include/IL/il.h    2016-05-29 21:20:43.592020762 +0200
+@@ -63,13 +63,8 @@
+       #endif
+ #endif
+-#ifdef RESTRICT_KEYWORD
+-#define RESTRICT restrict
+-#define CONST_RESTRICT const restrict
+-#else
+ #define RESTRICT
+ #define CONST_RESTRICT const
+-#endif
+ #include <stdio.h>
This page took 0.121529 seconds and 4 git commands to generate.