summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Steinert <mike.steinert@gmail.com>2012-05-23 09:26:04 -0600
committerMichael Steinert <mike.steinert@gmail.com>2012-05-23 09:26:04 -0600
commit46314cb190652f708c3e1bcdcf5e0b0648b71558 (patch)
treeeb279f4fa797813638ca232e43d3d660e5665531
parenta1de9945125b9c06cdeb11e713258717b3179234 (diff)
downloadrabbitmq-c-github-ask-46314cb190652f708c3e1bcdcf5e0b0648b71558.tar.gz
Fix visibility definitions for GCC
1. Functions don't need to be declared `extern` 2. Static variables need to be declared `extern` Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
-rw-r--r--librabbitmq/amqp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/librabbitmq/amqp.h b/librabbitmq/amqp.h
index 4a589e3..c8d0127 100644
--- a/librabbitmq/amqp.h
+++ b/librabbitmq/amqp.h
@@ -107,10 +107,10 @@
# define AMQP_PUBLIC_FUNCTION \
__attribute__ ((visibility ("default")))
# define AMQP_PUBLIC_VARIABLE \
- __attribute__ ((visibility ("default")))
+ __attribute__ ((visibility ("default"))) extern
# define AMQP_CALL
#else
-# define AMQP_PUBLIC_FUNCTION extern
+# define AMQP_PUBLIC_FUNCTION
# define AMQP_PUBLIC_VARIABLE extern
# define AMQP_CALL
#endif