X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fwordexp.h;h=e7eb3255ded8ffede3b8a24c153e5c875a9c65be;hp=91995c4447a9dc8e1bbd86240b37c755d8af251b;hb=b72db3d1ed561d31d059acc7e9a5aacb8c5ee9ac;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/include/wordexp.h b/include/wordexp.h index 91995c44..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 @@ -19,7 +25,7 @@ extern "C" { typedef struct { size_t we_wordc; - char **wc_wordv; + char **we_wordv; size_t we_offs; } wordexp_t; @@ -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