ports/graphics/DevIL/patches/patch-include_IL_il_h

15 lines
303 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
restrict doesn't exist in C++
Index: include/IL/il.h
--- include/IL/il.h.orig
+++ 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