summaryrefslogtreecommitdiffstats
path: root/g10/main.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-04-14 16:39:16 +0200
committerWerner Koch <wk@gnupg.org>2010-04-14 16:39:16 +0200
commit53c636c4c666ab27440fb4a866bf0ae32f0aa517 (patch)
treeac6d1e065b3f65bec63484d636c1ed0b19dbf8d1 /g10/main.h
parentWhole lot of changes to support CE. (diff)
downloadgnupg2-53c636c4c666ab27440fb4a866bf0ae32f0aa517.tar.xz
gnupg2-53c636c4c666ab27440fb4a866bf0ae32f0aa517.zip
./autogen.sh --build-w32ce does now succeed.
Diffstat (limited to 'g10/main.h')
-rw-r--r--g10/main.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/g10/main.h b/g10/main.h
index 781a49f38..540d9b1d9 100644
--- a/g10/main.h
+++ b/g10/main.h
@@ -33,8 +33,13 @@
#define DEFAULT_CIPHER_ALGO CIPHER_ALGO_CAST5
#define DEFAULT_DIGEST_ALGO DIGEST_ALGO_SHA1
-#define DEFAULT_COMPRESS_ALGO COMPRESS_ALGO_ZIP
#define DEFAULT_S2K_DIGEST_ALGO DIGEST_ALGO_SHA1
+#ifdef HAVE_ZIP
+# define DEFAULT_COMPRESS_ALGO COMPRESS_ALGO_ZIP
+#else
+# define DEFAULT_COMPRESS_ALGO COMPRESS_ALGO_NONE
+#endif
+
#define S2K_DIGEST_ALGO (opt.s2k_digest_algo?opt.s2k_digest_algo:DEFAULT_S2K_DIGEST_ALGO)