summaryrefslogtreecommitdiff
path: root/libraries/DevIL/patch-include_IL_il.h
diff options
context:
space:
mode:
authorDugan Chen <thedoogster [at] gmail [dot] com>2015-11-26 23:33:32 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-28 07:25:59 +0700
commitb7ef55005eac21267b39a9c112df3e307960d1bb (patch)
treeff7e068c84723b71ecf7b0665e7bf79e3e9e6f07 /libraries/DevIL/patch-include_IL_il.h
parentb6c74f9319f9cd05a73b39508886fab3e3497a6f (diff)
downloadslackbuilds-b7ef55005eac21267b39a9c112df3e307960d1bb.tar.gz
libraries/DevIL: Add patch for gcc 5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/DevIL/patch-include_IL_il.h')
-rw-r--r--libraries/DevIL/patch-include_IL_il.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libraries/DevIL/patch-include_IL_il.h b/libraries/DevIL/patch-include_IL_il.h
new file mode 100644
index 0000000000..e265db2fe4
--- /dev/null
+++ b/libraries/DevIL/patch-include_IL_il.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-include_IL_il.h,v 1.1 2012/07/09 19:16:33 joerg Exp $
+
+--- include/IL/il.h.orig 2012-07-06 12:31:13.000000000 +0000
++++ include/IL/il.h
+@@ -63,7 +63,7 @@ extern "C" {
+ #endif
+ #endif
+
+-#ifdef RESTRICT_KEYWORD
++#if defined(RESTRICT_KEYWORD) && !defined(__cplusplus)
+ #define RESTRICT restrict
+ #define CONST_RESTRICT const restrict
+ #else