authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-03-22 16:08:19-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-03-22 16:08:19-04:00
log02767690e0084ccbad2268c4f4abb0b2d2e8c30a
tree19221aba21333173dc09c6df37a4b739af9fa969
parent71c78cc9cfbcefa165882326a9b90efacf107216

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


2 files changed, 2 insertions(+), 4 deletions(-)

src/parse_f128.c+1-1
......@@ -1028,7 +1028,7 @@ float128_t __floatscan(struct MuslFILE *f, int prec, int pok)
10281028 return decfloat(f, c, bits, emin, sign, pok);
10291029}
10301030
1031float128_t parse_f128(const char *restrict s, char **restrict p) {
1031float128_t parse_f128(const char *s, char **p) {
10321032 struct MuslFILE f;
10331033 sh_fromstring(&f, s);
10341034 shlim(&f, 0);
src/parse_f128.h+1-3
......@@ -12,12 +12,10 @@
1212
1313#ifdef __cplusplus
1414#define ZIG_EXTERN_C extern "C"
15#define ZIG_RESTRICT
1615#else
1716#define ZIG_EXTERN_C
18#define ZIG_RESTRICT restrict
1917#endif
2018
21ZIG_EXTERN_C float128_t parse_f128(const char *ZIG_RESTRICT s, char **ZIG_RESTRICT p);
19ZIG_EXTERN_C float128_t parse_f128(const char *s, char **p);
2220
2321#endif