From 58872160e593a09c2af8088cbbed7b2c049f9402 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 3ba8225c..97359cfd 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -304,7 +304,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