From 26d5b5d9abc2148adb406ba57a5b98d44a4b9fd2 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Wed, 29 Jun 2022 10:52:31 +0100 Subject: [PATCH] meta: chase the very last __restrict__ for C++ compatibility --- include/sys/stat.h | 4 ++-- include/time.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/sys/stat.h b/include/sys/stat.h index 4a3b886..a2d6de4 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -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 } diff --git a/include/time.h b/include/time.h index 99a0b9d..850df69 100644 --- a/include/time.h +++ b/include/time.h @@ -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 }