summaryrefslogtreecommitdiff
path: root/include/wordexp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/wordexp.h')
-rw-r--r--include/wordexp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/wordexp.h b/include/wordexp.h
index 0691c8ea..e7eb3255 100644
--- a/include/wordexp.h
+++ b/include/wordexp.h
@@ -5,6 +5,12 @@
extern "C" {
#endif
+#if __STDC_VERSION__ >= 199901L
+#define __restrict restrict
+#elif !defined(__GNUC__)
+#define __restrict
+#endif
+
#define __NEED_size_t
#include <bits/alltypes.h>
@@ -30,7 +36,7 @@ typedef struct
#define WRDE_CMDSUB 4
#define WRDE_SYNTAX 5
-int wordexp (const char *, wordexp_t *, int);
+int wordexp (const char *__restrict, wordexp_t *__restrict, int);
void wordfree (wordexp_t *);
#ifdef __cplusplus