From: Remi Collet Date: Tue, 21 Apr 2015 15:40:43 +0000 (+0200) Subject: check if AMQP_VERSION exists X-Git-Tag: collectd-5.5.0~12^2~5^2~10 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=7fd46078dc313f752423ccb66eba5134aa56f6c5;hp=bd60e580f462ff3fc5d6faff4b0251e84f7f3728;p=collectd.git check if AMQP_VERSION exists --- diff --git a/src/amqp.c b/src/amqp.c index 39fbe744..24bc4881 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -299,7 +299,7 @@ static int camqp_create_exchange (camqp_config_t *conf) /* {{{ */ /* type = */ amqp_cstring_bytes (conf->exchange_type), /* passive = */ 0, /* durable = */ 0, -#if AMQP_VERSION >= 0x00060000 +#if defined(AMQP_VERSION) && AMQP_VERSION >= 0x00060000 /* auto delete = */ 0, /* internal = */ 0, #endif