From b8d7e074c16c7d0cac98e9236b299c0941edfd78 Mon Sep 17 00:00:00 2001 From: Christian Schmitz Date: Sun, 13 Oct 2024 02:47:30 +0200 Subject: [PATCH] Update archive_private to avoid template keyword (#2342) People really should never, ever, ever use libarchive internal headers. And they definitely should not expect libarchive internal headers to work in a C++ compiler. (C++ and C are really just not that compatible.) However, people do a lot of things they shouldn't: Avoid the reserved C++ keyword `template` --- libarchive/archive_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libarchive/archive_private.h b/libarchive/archive_private.h index 5c5b5607a..050fc63c0 100644 --- a/libarchive/archive_private.h +++ b/libarchive/archive_private.h @@ -160,9 +160,9 @@ __LA_NORETURN void __archive_errx(int retvalue, const char *msg); void __archive_ensure_cloexec_flag(int fd); int __archive_mktemp(const char *tmpdir); #if defined(_WIN32) && !defined(__CYGWIN__) -int __archive_mkstemp(wchar_t *template); +int __archive_mkstemp(wchar_t *templates); #else -int __archive_mkstemp(char *template); +int __archive_mkstemp(char *templates); #endif int __archive_clean(struct archive *); -- 2.47.2