aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_private.h')
-rw-r--r--libarchive/archive_private.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/libarchive/archive_private.h b/libarchive/archive_private.h
index 4b4be9796dfc..937a87bb1efc 100644
--- a/libarchive/archive_private.h
+++ b/libarchive/archive_private.h
@@ -25,13 +25,13 @@
* $FreeBSD: head/lib/libarchive/archive_private.h 201098 2009-12-28 02:58:14Z kientzle $
*/
+#ifndef ARCHIVE_PRIVATE_H_INCLUDED
+#define ARCHIVE_PRIVATE_H_INCLUDED
+
#ifndef __LIBARCHIVE_BUILD
#error This header is only to be used internally to libarchive.
#endif
-#ifndef ARCHIVE_PRIVATE_H_INCLUDED
-#define ARCHIVE_PRIVATE_H_INCLUDED
-
#if HAVE_ICONV_H
#include <iconv.h>
#endif
@@ -153,6 +153,11 @@ void __archive_errx(int retvalue, const char *msg) __LA_DEAD;
void __archive_ensure_cloexec_flag(int fd);
int __archive_mktemp(const char *tmpdir);
+#if defined(_WIN32) && !defined(__CYGWIN__)
+int __archive_mkstemp(wchar_t *template);
+#else
+int __archive_mkstemp(char *template);
+#endif
int __archive_clean(struct archive *);