diff options
author | Andreas Schneider <asn@cynapses.org> | 2010-12-10 20:02:15 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-12-10 20:02:15 +0100 |
commit | 57d752a1c31d64ef197444d6bf8f1f2726776661 (patch) | |
tree | 5daead8cca98ed15c7a79a92a8c8c94088c3b87f /include/libssh | |
parent | ef1cfbea70be15ec318e97e2293b6466b7032fbc (diff) | |
download | libssh-57d752a1c31d64ef197444d6bf8f1f2726776661.tar.gz libssh-57d752a1c31d64ef197444d6bf8f1f2726776661.tar.xz libssh-57d752a1c31d64ef197444d6bf8f1f2726776661.zip |
include: Only require LIBSSH_STATIC on Windows.
Diffstat (limited to 'include/libssh')
-rw-r--r-- | include/libssh/libssh.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index e0db20e2..21ab70e9 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -22,10 +22,10 @@ #ifndef _LIBSSH_H #define _LIBSSH_H -#ifdef LIBSSH_STATIC - #define LIBSSH_API -#else - #if defined _WIN32 || defined __CYGWIN__ +#if defined _WIN32 || defined __CYGWIN__ + #ifdef LIBSSH_STATIC + #define LIBSSH_API + #else #ifdef LIBSSH_EXPORTS #ifdef __GNUC__ #define LIBSSH_API __attribute__((dllexport)) @@ -39,12 +39,12 @@ #define LIBSSH_API __declspec(dllimport) #endif #endif + #endif +#else + #if __GNUC__ >= 4 + #define LIBSSH_API __attribute__((visibility("default"))) #else - #if __GNUC__ >= 4 - #define LIBSSH_API __attribute__((visibility("default"))) - #else - #define LIBSSH_API - #endif + #define LIBSSH_API #endif #endif |