From: Hemant Date: Wed, 18 Jun 2025 18:51:00 +0000 (-0500) Subject: Error related to restrict keyword supressed for older vs compiler X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7066d4a6b3597df70f41a7f6317a6e1ce03e680;p=thirdparty%2Flibarchive.git Error related to restrict keyword supressed for older vs compiler --- diff --git a/tar/bsdtar.h b/tar/bsdtar.h index 45dfeed7d..8ef8676d7 100644 --- a/tar/bsdtar.h +++ b/tar/bsdtar.h @@ -16,6 +16,10 @@ #define ENV_WRITER_OPTIONS "TAR_WRITER_OPTIONS" #define IGNORE_WRONG_MODULE_NAME "__ignore_wrong_module_name__," +#if defined(_MSC_VER ) && (_MSC_VER < 1927 ) /* Check if compiler pre-dated Visual Studio 2019 Release 16.8 */ +#define restrict /* The restrict keyword is not supported. */ +#endif + struct creation_set; /* * The internal state for the "bsdtar" program.