diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2012-05-28 13:41:31 -0400 |
---|---|---|
committer | Michael Steinert <mike.steinert@gmail.com> | 2012-05-29 12:07:44 -0600 |
commit | 637d6593884910e86dde8400b281dc87b4d568c3 (patch) | |
tree | a61278a80cf5faef97e303e8e95e41c9b1629d4b | |
parent | dd20ffb3e3be6253e9c6ff6887f01d7e8de8522a (diff) | |
download | rabbitmq-c-github-ask-637d6593884910e86dde8400b281dc87b4d568c3.tar.gz |
Move MSVC ssize_t defs outside AMQP_PUBLIC_* macro ifdefs
-rw-r--r-- | librabbitmq/amqp.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/librabbitmq/amqp.h b/librabbitmq/amqp.h index 01158cf..a7c1771 100644 --- a/librabbitmq/amqp.h +++ b/librabbitmq/amqp.h @@ -107,6 +107,22 @@ struct iovec; # endif # define AMQP_CALL __cdecl +#elif defined(__GNUC__) && __GNUC__ >= 4 +# include <sys/uio.h> +# define AMQP_PUBLIC_FUNCTION \ + __attribute__ ((visibility ("default"))) +# define AMQP_PUBLIC_VARIABLE \ + __attribute__ ((visibility ("default"))) extern +# define AMQP_CALL +#else +# define AMQP_PUBLIC_FUNCTION +# define AMQP_PUBLIC_VARIABLE extern +# define AMQP_CALL +#endif + +/* Define ssize_t on Win32/64 platforms + See: http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-April/030649.html for details + */ #if !defined(_W64) #if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300 #define _W64 __w64 @@ -123,19 +139,6 @@ typedef _W64 int ssize_t; #endif #endif -#elif defined(__GNUC__) && __GNUC__ >= 4 -# include <sys/uio.h> -# define AMQP_PUBLIC_FUNCTION \ - __attribute__ ((visibility ("default"))) -# define AMQP_PUBLIC_VARIABLE \ - __attribute__ ((visibility ("default"))) extern -# define AMQP_CALL -#else -# define AMQP_PUBLIC_FUNCTION -# define AMQP_PUBLIC_VARIABLE extern -# define AMQP_CALL -#endif - #include <stddef.h> #include <stdint.h> |