get rid of restrict; it's not supported by MSVC

This commit is contained in:
Andrew Kelley 2019-03-22 16:08:19 -04:00
parent 71c78cc9cf
commit 02767690e0
2 changed files with 2 additions and 4 deletions

View File

@ -1028,7 +1028,7 @@ float128_t __floatscan(struct MuslFILE *f, int prec, int pok)
return decfloat(f, c, bits, emin, sign, pok);
}
float128_t parse_f128(const char *restrict s, char **restrict p) {
float128_t parse_f128(const char *s, char **p) {
struct MuslFILE f;
sh_fromstring(&f, s);
shlim(&f, 0);

View File

@ -12,12 +12,10 @@
#ifdef __cplusplus
#define ZIG_EXTERN_C extern "C"
#define ZIG_RESTRICT
#else
#define ZIG_EXTERN_C
#define ZIG_RESTRICT restrict
#endif
ZIG_EXTERN_C float128_t parse_f128(const char *ZIG_RESTRICT s, char **ZIG_RESTRICT p);
ZIG_EXTERN_C float128_t parse_f128(const char *s, char **p);
#endif