Просмотр исходного кода

libarchive: Remove a system preprocessor macro that conflicts with a local var

On SunOS i386, the system headers sometimes define macro names
corresponding to register names, short and with no prefix.
Undefine one that conflicts with our code.
Brad King 3 лет назад
Родитель
Сommit
3ba324b6b6
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      Utilities/cmlibarchive/libarchive/archive_blake2sp_ref.c

+ 3 - 0
Utilities/cmlibarchive/libarchive/archive_blake2sp_ref.c

@@ -28,6 +28,9 @@
 
 #define PARALLELISM_DEGREE 8
 
+/* Remove system-defined preprocessor defintions that conflict with us.  */
+#undef FS
+
 /*
   blake2sp_init_param defaults to setting the expecting output length
   from the digest_length parameter block field.