diff options
author | Doug Zongker <dougz@android.com> | 2011-10-28 19:33:05 +0200 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2011-10-28 19:33:05 +0200 |
commit | 10e418d3c89ec404fbf959c1ef77a720a42a66ed (patch) | |
tree | 0c429bcc8f4a1935f3be97d87ebdc2f4434ee887 /minzip | |
parent | allow recovery packages to wipe cache (diff) | |
download | android_bootable_recovery-10e418d3c89ec404fbf959c1ef77a720a42a66ed.tar android_bootable_recovery-10e418d3c89ec404fbf959c1ef77a720a42a66ed.tar.gz android_bootable_recovery-10e418d3c89ec404fbf959c1ef77a720a42a66ed.tar.bz2 android_bootable_recovery-10e418d3c89ec404fbf959c1ef77a720a42a66ed.tar.lz android_bootable_recovery-10e418d3c89ec404fbf959c1ef77a720a42a66ed.tar.xz android_bootable_recovery-10e418d3c89ec404fbf959c1ef77a720a42a66ed.tar.zst android_bootable_recovery-10e418d3c89ec404fbf959c1ef77a720a42a66ed.zip |
Diffstat (limited to 'minzip')
-rw-r--r-- | minzip/DirUtil.h | 8 | ||||
-rw-r--r-- | minzip/Zip.h | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/minzip/DirUtil.h b/minzip/DirUtil.h index 5d881f562..0d5ea7ccb 100644 --- a/minzip/DirUtil.h +++ b/minzip/DirUtil.h @@ -20,6 +20,10 @@ #include <stdbool.h> #include <utime.h> +#ifdef __cplusplus +extern "C" { +#endif + /* Like "mkdir -p", try to guarantee that all directories * specified in path are present, creating as many directories * as necessary. The specified mode is passed to all mkdir @@ -48,4 +52,8 @@ int dirUnlinkHierarchy(const char *path); int dirSetHierarchyPermissions(const char *path, int uid, int gid, int dirMode, int fileMode); +#ifdef __cplusplus +} +#endif + #endif // MINZIP_DIRUTIL_H_ diff --git a/minzip/Zip.h b/minzip/Zip.h index 9f99fba5b..739dbf5f2 100644 --- a/minzip/Zip.h +++ b/minzip/Zip.h @@ -14,6 +14,10 @@ #include "Hash.h" #include "SysUtil.h" +#ifdef __cplusplus +extern "C" { +#endif + /* * One entry in the Zip archive. Treat this as opaque -- use accessors below. * @@ -210,4 +214,8 @@ bool mzExtractRecursive(const ZipArchive *pArchive, int flags, const struct utimbuf *timestamp, void (*callback)(const char *fn, void*), void *cookie); +#ifdef __cplusplus +} +#endif + #endif /*_MINZIP_ZIP*/ |