From de81095186abe74288c39dda932ccb71866ee847 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Thu, 6 Aug 2009 23:33:20 +0200 Subject: identify patchlevel in version macros --- antispam-plugin.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'antispam-plugin.h') diff --git a/antispam-plugin.h b/antispam-plugin.h index 5c56b42..38a3be6 100644 --- a/antispam-plugin.h +++ b/antispam-plugin.h @@ -85,7 +85,7 @@ extern bool need_folder_hook; * Dovecot version compat code */ -#if DOVECOT_VERSION_CODE(1, 1) == DOVECOT_VERSION || DOVECOT_VERSION_CODE(1, 2) == DOVECOT_VERSION +#if DOVECOT_VERSION_CODE(1, 1, 0) == DOVECOT_VERSION || DOVECOT_VERSION_CODE(1, 2, 0) == DOVECOT_VERSION #define __attr_unused__ ATTR_UNUSED #define ME(err) MAIL_ERROR_ ##err, #define PLUGIN_ID uint32_t PLUGIN_FUNCTION(id) = 0 @@ -114,7 +114,7 @@ o_stream_create_from_fd(int fd, pool_t pool ATTR_UNUSED) return o_stream_create_fd(fd, 0, TRUE); } -#if DOVECOT_VERSION_CODE(1, 2) == DOVECOT_VERSION +#if DOVECOT_VERSION_CODE(1, 2, 0) == DOVECOT_VERSION static inline struct dict * string_dict_init(const char *uri, const char *username) { @@ -132,7 +132,7 @@ string_dict_init(const char *uri, const char *username) return dict_init(uri, DICT_DATA_TYPE_STRING, username); } #endif -#elif DOVECOT_VERSION_CODE(1, 0) == DOVECOT_VERSION +#elif DOVECOT_VERSION_CODE(1, 0, 0) == DOVECOT_VERSION #define ME(err) #define PLUGIN_ID #define str_array_length(x) strarray_length(x) -- cgit v1.2.3