]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Update archive_private to avoid template keyword (#2342)
authorChristian Schmitz <support@monkeybreadsoftware.de>
Sun, 13 Oct 2024 00:47:30 +0000 (02:47 +0200)
committerGitHub <noreply@github.com>
Sun, 13 Oct 2024 00:47:30 +0000 (17:47 -0700)
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

index 5c5b5607aea2b168a99b568d8d353cd229341e3c..050fc63c0b2e4df13be24e44ccd7ffcddd2b2361 100644 (file)
@@ -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 *);