]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Error related to restrict keyword supressed for older vs compiler
authorHemant <hemant.jadhav@emerson.com>
Wed, 18 Jun 2025 18:51:00 +0000 (13:51 -0500)
committerHemant <hemant.jadhav@emerson.com>
Wed, 18 Jun 2025 18:51:00 +0000 (13:51 -0500)
tar/bsdtar.h

index 45dfeed7dce3ff1075907f31020f48d63e5e4bbf..8ef8676d7ef8fbb01d159ba85e95c39ed26b4d08 100644 (file)
 #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.