1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-05 01:02:39 +03:00

include: Only require LIBSSH_STATIC on Windows.

This commit is contained in:
Andreas Schneider
2010-12-10 20:02:15 +01:00
parent ef1cfbea70
commit 57d752a1c3
2 changed files with 18 additions and 11 deletions

View File

@@ -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