meta: chase the very last __restrict__ for C++ compatibility

This commit is contained in:
Lephenixnoir 2022-06-29 10:52:31 +01:00
parent 619afe25da
commit 26d5b5d9ab
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
2 changed files with 4 additions and 4 deletions

View file

@ -72,8 +72,8 @@ struct stat {
#define st_ctime st_ctim.tv_sec
/* Obtain information about an entry in the filesystem. */
extern int stat(char const * restrict __pathname,
struct stat * restrict __statbuf);
extern int stat(char const * __restrict__ __pathname,
struct stat * __restrict__ __statbuf);
#ifdef __cplusplus
}

View file

@ -61,8 +61,8 @@ extern struct tm *localtime(const time_t *time);
/* Formats __time according to the specified format; similar to snprintf().
TODO: %g, %G, %V (week-based year), and %U, %W (week number) are not
supported and substituted by "??". %z and %Z output nothing. */
size_t strftime(char * restrict __s, size_t __maxsize,
const char * restrict __format, const struct tm * restrict __time);
size_t strftime(char * __restrict__ __s, size_t __maxsize,
const char * __restrict__ __format, const struct tm * __restrict__ __time);
#ifdef __cplusplus
}