about summary refs log tree commit diff
path: root/include/glob.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/glob.h')
-rw-r--r--include/glob.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/glob.h b/include/glob.h
index 376baa71..c49a2dea 100644
--- a/include/glob.h
+++ b/include/glob.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>
@@ -17,7 +23,7 @@ typedef struct {
 	void *__dummy2[5];
 } glob_t;
 
-int  glob(const char *, int, int (*)(const char *, int), glob_t *);
+int  glob(const char *__restrict, int, int (*)(const char *, int), glob_t *__restrict);
 void globfree(glob_t *);
 
 #define GLOB_ERR      0x01