diff --git a/include/libssh2.h b/include/libssh2.h index 63c44c8..86fb41c 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