From 7fd46078dc313f752423ccb66eba5134aa56f6c5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 21 Apr 2015 17:40:43 +0200 Subject: [PATCH] check if AMQP_VERSION exists --- src/amqp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0