From: Alvaro Herrera Date: Thu, 15 Mar 2018 13:02:51 +0000 (-0300) Subject: restrict -> pg_restrict X-Git-Tag: REL_11_BETA1~595 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d1b805fcc57be47d3269a13eb01d993fe768295;p=postgresql restrict -> pg_restrict So that it works on MSVC, too. Author: Michaƫl Paquier Discussion: https://postgr.es/m/29889.1520968202@sss.pgh.pa.us --- diff --git a/src/common/string.c b/src/common/string.c index a45e9b8858..3260d37a84 100644 --- a/src/common/string.c +++ b/src/common/string.c @@ -47,7 +47,7 @@ pg_str_endswith(const char *str, const char *end) * strtoint --- just like strtol, but returns int not long */ int -strtoint(const char *restrict str, char **restrict endptr, int base) +strtoint(const char *pg_restrict str, char **pg_restrict endptr, int base) { long val; diff --git a/src/include/common/string.h b/src/include/common/string.h index 23e2e01f0e..63c3e81a64 100644 --- a/src/include/common/string.h +++ b/src/include/common/string.h @@ -11,6 +11,7 @@ #define COMMON_STRING_H extern bool pg_str_endswith(const char *str, const char *end); -extern int strtoint(const char *restrict str, char **restrict endptr, int base); +extern int strtoint(const char *pg_restrict str, char **pg_restrict endptr, + int base); #endif /* COMMON_STRING_H */