Commit 8d1b805f authored by Alvaro Herrera's avatar Alvaro Herrera

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
parent e69f5e0e
......@@ -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;
......
......@@ -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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment