summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-10-21 17:49:04 +0100
committerDavid Wragg <david@rabbitmq.com>2010-10-21 17:49:04 +0100
commit905b591638861dafd76d6c9525bf7d9edf64f81f (patch)
tree78b9fa9d28b787ed1853441e2206e408ffd12bb7
parentf6d629ce5f6c06d48da68eb07326b9bf11c3683a (diff)
downloadrabbitmq-c-github-ask-905b591638861dafd76d6c9525bf7d9edf64f81f.tar.gz
Get autoconf to detect the inline function syntax
-rw-r--r--configure.ac2
-rw-r--r--librabbitmq/amqp_mem.c2
-rw-r--r--librabbitmq/amqp_private.h2
3 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index be7e695..9a0288c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,8 @@ AS_IF([test "x$windows" = xyes],
[AC_DEFINE([WINDOWS], [1], [Define to 1 if on Windows.])]
)
+AC_C_INLINE
+
dnl Decide which API abstraction layer to use
PLATFORM_DIR=unix
if test "x$windows" = xyes ; then
diff --git a/librabbitmq/amqp_mem.c b/librabbitmq/amqp_mem.c
index afe45fb..3ad8c3e 100644
--- a/librabbitmq/amqp_mem.c
+++ b/librabbitmq/amqp_mem.c
@@ -56,7 +56,7 @@
#include <assert.h>
#include "amqp.h"
-#include "../config.h"
+#include "config.h"
char const *amqp_version(void) {
return VERSION; /* defined in config.h */
diff --git a/librabbitmq/amqp_private.h b/librabbitmq/amqp_private.h
index c30663a..9d7c4e5 100644
--- a/librabbitmq/amqp_private.h
+++ b/librabbitmq/amqp_private.h
@@ -51,6 +51,8 @@
* ***** END LICENSE BLOCK *****
*/
+#include "config.h"
+
#ifdef __cplusplus
extern "C" {
#endif