This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Fix invalid use of restrict
- From: Alexey Pavlov <alexpux at gmail dot com>
- To: cygwin-developers at cygwin dot com
- Date: Thu, 28 Nov 2013 12:03:59 +0400
- Subject: Fix invalid use of restrict
- Authentication-results: sourceware.org; auth=none
In CVS version I get error: invalid use of restrict. Patch for it is below
>From 2a2164e5ed7cf6220ae7b2f7dac3016e1bf9293e Mon Sep 17 00:00:00 2001
From: Alexpux <alexey.pawlow@gmail.com>
Date: Thu, 28 Nov 2013 12:01:15 +0400
Subject: [PATCH] Fix invalid use of 'restrict' error.
---
winsup/cygwin/include/glob.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/include/glob.h b/winsup/cygwin/include/glob.h
index 4ad200f..59f0efc 100644
--- a/winsup/cygwin/include/glob.h
+++ b/winsup/cygwin/include/glob.h
@@ -103,7 +103,7 @@ __BEGIN_DECLS
# define DLLEXPORT __declspec(dllimport)
#endif
-int DLLEXPORT glob (const char __restrict *, int, int (*)(const char
*, int), glob_t *__restrict);
+int DLLEXPORT glob (const char *__restrict, int, int (*)(const char
*, int), glob_t *__restrict);
void DLLEXPORT globfree (glob_t *);
int DLLEXPORT glob_pattern_p (const char *, int);
__END_DECLS
--
1.8.3.4 (Apple Git-47)