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
This commit is contained in:
parent
e69f5e0efc
commit
8d1b805fcc
@ -47,7 +47,7 @@ pg_str_endswith(const char *str, const char *end)
|
|||||||
* strtoint --- just like strtol, but returns int not long
|
* strtoint --- just like strtol, but returns int not long
|
||||||
*/
|
*/
|
||||||
int
|
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;
|
long val;
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
#define COMMON_STRING_H
|
#define COMMON_STRING_H
|
||||||
|
|
||||||
extern bool pg_str_endswith(const char *str, const char *end);
|
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 */
|
#endif /* COMMON_STRING_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user