From c9e8f3a1a0680a4cf37d053348f16e5cfec2f019 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Mon, 10 Jan 2005 23:56:09 +0000 Subject: [PATCH] Allow alternate API prefix from CFLAGS or calling app --- include/libssh2.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/libssh2.h b/include/libssh2.h index 63c44c88..86fb41c9 100644 --- a/include/libssh2.h +++ b/include/libssh2.h @@ -42,6 +42,8 @@ #include #include +/* Allow alternate API prefix from CFLAGS or calling app */ +#ifndef LIBSSH2_API #ifdef LIBSSH2_WIN32 # ifdef LIBSSH2_LIBRARY # define LIBSSH2_API __declspec(dllexport) @@ -54,6 +56,7 @@ #else # define LIBSSH2_API #endif +#endif #define LIBSSH2_VERSION "0.4" #define LIBSSH2_APINO 200412301450