From 02767690e0084ccbad2268c4f4abb0b2d2e8c30a Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 22 Mar 2019 16:08:19 -0400 Subject: [PATCH] get rid of restrict; it's not supported by MSVC --- src/parse_f128.c | 2 +- src/parse_f128.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/parse_f128.c b/src/parse_f128.c index df6469f3bbd4fc91ccff9493c6486fce67e6d165..bba45e0026f089cec24d223f97295dcb2035ec13 100644 --- a/src/parse_f128.c +++ b/src/parse_f128.c @@ -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); diff --git a/src/parse_f128.h b/src/parse_f128.h index 684b6660246e32e425c5c5f392cc0364e2070d7f..82cdf6c9a0bfcc38a6e91f2e2da29df58cb757a5 100644 --- a/src/parse_f128.h +++ b/src/parse_f128.h @@ -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 -- 2.54.0