From: Charles Wilson Date: Wed, 22 Jul 2009 12:13:50 +0000 (-0400) Subject: Remove unnecessary 'extern "C"' from private headers. X-Git-Tag: v2.8.0~511 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfb8fc79c40387dd481cade1dbddb307667beef5;p=thirdparty%2Flibarchive.git Remove unnecessary 'extern "C"' from private headers. Correct include guard in archive_windows.h SVN-Revision: 1264 --- diff --git a/cpio/cpio_windows.h b/cpio/cpio_windows.h index 6587dcd45..7f6f8ed82 100644 --- a/cpio/cpio_windows.h +++ b/cpio/cpio_windows.h @@ -48,14 +48,6 @@ struct group { gid_t gr_gid; }; -#ifdef __cplusplus -extern "C" { -#endif - extern unsigned int sleep(unsigned int seconds); -#ifdef __cplusplus -} -#endif - #endif /* CPIO_WINDOWS_H */ diff --git a/libarchive/archive_windows.h b/libarchive/archive_windows.h index c1bff32a8..cbbb1b8f9 100644 --- a/libarchive/archive_windows.h +++ b/libarchive/archive_windows.h @@ -27,8 +27,8 @@ * $FreeBSD$ */ -#ifndef LIBARCHIVE_NONPOSIX_H_INCLUDED -#define LIBARCHIVE_NONPOSIX_H_INCLUDED +#ifndef LIBARCHIVE_ARCHIVE_WINDOWS_H_INCLUDED +#define LIBARCHIVE_ARCHIVE_WINDOWS_H_INCLUDED /* Start of configuration for native Win32 */ @@ -302,10 +302,6 @@ typedef struct { /* End of Win32 definitions. */ -#ifdef __cplusplus -extern "C" { -#endif - /* Implementation POSIX function */ extern int link (const char *from, const char *to); extern int symlink (const char *from, const char *to); @@ -388,8 +384,4 @@ extern void SHA512_Final(unsigned char buf[SHA512_DIGEST_LENGTH], #endif #endif -#ifdef __cplusplus -} -#endif - -#endif /* LIBARCHIVE_NONPOSIX_H_INCLUDED */ +#endif /* LIBARCHIVE_ARCHIVE_WINDOWS_H_INCLUDED */ diff --git a/tar/bsdtar_windows.h b/tar/bsdtar_windows.h index fa59be8f7..065e58257 100644 --- a/tar/bsdtar_windows.h +++ b/tar/bsdtar_windows.h @@ -41,10 +41,6 @@ struct direct { char d_name[MAX_PATH]; }; -#ifdef __cplusplus -extern "C" { -#endif - struct bsdtar; struct archive; @@ -57,8 +53,4 @@ extern void write_hierarchy_win(struct bsdtar *bsdtar, struct archive *a, void (*write_hierarchy)(struct bsdtar *bsdtar, struct archive *a, const char *path)); -#ifdef __cplusplus -} -#endif - #endif /* BSDTAR_WINDOWS_H */