summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/qthreads/restrict.patch
blob: 4c95714f6b35c435485527d36d23ee42b9dcdefa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/include/qthread/common.h.in
+++ b/include/qthread/common.h.in
@@ -84,7 +84,9 @@
 /* Define to the equivalent of the C99 'restrict' keyword, or to
    nothing if this is not supported.  Do not define if restrict is
    supported directly.  */
+#ifndef restrict
 #undef restrict
+#endif
 /* Work around a bug in Sun C++: it does not support _Restrict or
    __restrict__, even though the corresponding Sun C compiler ends up with
    "#define restrict _Restrict" or "#define restrict __restrict__" in the