Skip to content

Commit 8d1b805

Browse files
committed
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
1 parent e69f5e0 commit 8d1b805

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/common/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pg_str_endswith(const char *str, const char *end)
4747
* strtoint --- just like strtol, but returns int not long
4848
*/
4949
int
50-
strtoint(const char *restrict str, char **restrict endptr, int base)
50+
strtoint(const char *pg_restrict str, char **pg_restrict endptr, int base)
5151
{
5252
long val;
5353

src/include/common/string.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#define COMMON_STRING_H
1212

1313
extern bool pg_str_endswith(const char *str, const char *end);
14-
extern int strtoint(const char *restrict str, char **restrict endptr, int base);
14+
extern int strtoint(const char *pg_restrict str, char **pg_restrict endptr,
15+
int base);
1516

1617
#endif /* COMMON_STRING_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy