summaryrefslogtreecommitdiffstats
path: root/minzip
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-07-14 03:11:48 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-14 03:11:48 +0200
commit307eecfdc7dc73ce8f53f742e3c468e63b42f0e2 (patch)
tree47a62ed3cf643578280ddb1982599ed8345dd071 /minzip
parentam 65c230f4: Merge "Revert "Zero blocks before BLKDISCARD"" (diff)
parentMerge "recovery: Switch applypatch/ and updater/ to cpp." (diff)
downloadandroid_bootable_recovery-307eecfdc7dc73ce8f53f742e3c468e63b42f0e2.tar
android_bootable_recovery-307eecfdc7dc73ce8f53f742e3c468e63b42f0e2.tar.gz
android_bootable_recovery-307eecfdc7dc73ce8f53f742e3c468e63b42f0e2.tar.bz2
android_bootable_recovery-307eecfdc7dc73ce8f53f742e3c468e63b42f0e2.tar.lz
android_bootable_recovery-307eecfdc7dc73ce8f53f742e3c468e63b42f0e2.tar.xz
android_bootable_recovery-307eecfdc7dc73ce8f53f742e3c468e63b42f0e2.tar.zst
android_bootable_recovery-307eecfdc7dc73ce8f53f742e3c468e63b42f0e2.zip
Diffstat (limited to '')
-rw-r--r--minzip/Hash.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/minzip/Hash.h b/minzip/Hash.h
index 8194537f3..e83eac414 100644
--- a/minzip/Hash.h
+++ b/minzip/Hash.h
@@ -15,6 +15,10 @@
#include <stdbool.h>
#include <assert.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* compute the hash of an item with a specific type */
typedef unsigned int (*HashCompute)(const void* item);
@@ -183,4 +187,8 @@ typedef unsigned int (*HashCalcFunc)(const void* item);
void mzHashTableProbeCount(HashTable* pHashTable, HashCalcFunc calcFunc,
HashCompareFunc cmpFunc);
+#ifdef __cplusplus
+}
+#endif
+
#endif /*_MINZIP_HASH*/