diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/devil/files/devil-1.7.8-restrict.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/devil/files/devil-1.7.8-restrict.patch')
-rw-r--r-- | media-libs/devil/files/devil-1.7.8-restrict.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/media-libs/devil/files/devil-1.7.8-restrict.patch b/media-libs/devil/files/devil-1.7.8-restrict.patch new file mode 100644 index 000000000000..d99ccb3a3008 --- /dev/null +++ b/media-libs/devil/files/devil-1.7.8-restrict.patch @@ -0,0 +1,23 @@ +Patch from Sven Eden via bug 552370 +https://bugs.gentoo.org/show_bug.cgi?id=552370 + +--- a/include/IL/il.h 2009-03-08 08:10:08.000000000 +0100 ++++ b/include/IL/il.h 2015-09-03 16:22:04.056637044 +0200 +@@ -63,13 +63,13 @@ + #endif + #endif + +-#ifdef RESTRICT_KEYWORD +-#define RESTRICT restrict +-#define CONST_RESTRICT const restrict ++#if defined(RESTRICT_KEYWORD) && !defined(__cplusplus) ++#define RESTRICT __restrict__ ++#define CONST_RESTRICT const __restrict__ + #else + #define RESTRICT + #define CONST_RESTRICT const +-#endif ++#endif // RESTRICT keyword and not C++ + + #include <stdio.h> + |