slackbuilds_ponce/libraries/DevIL/patch-include_IL_il.h
Dugan Chen b7ef55005e libraries/DevIL: Add patch for gcc 5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2015-11-28 07:25:59 +07:00

13 lines
355 B
C

$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