diff --git a/openbr/openbr.h b/openbr/openbr.h index 696669f..b91a7ac 100644 --- a/openbr/openbr.h +++ b/openbr/openbr.h @@ -41,18 +41,6 @@ extern "C" { * \section managed_return_value Managed Return Value * Memory for const char* return values is managed internally and guaranteed until the next call to the function. * - * \section python_api Python API - * A Python API is available via SWIG. - * \code - * $ ls include/br/python - * \endcode - * - * \section java_api Java API - * A Java API is available via SWIG. - * \code - * $ ls include/br/java - * \endcode - * * \section examples Examples * - \ref c_face_recognition_evaluation * diff --git a/openbr/openbr_export.h b/openbr/openbr_export.h index 3d40f01..4bde0f8 100644 --- a/openbr/openbr_export.h +++ b/openbr/openbr_export.h @@ -17,21 +17,17 @@ #ifndef OPENBR_EXPORT_H #define OPENBR_EXPORT_H -#if defined SWIG -# define BR_EXPORT extern +#if defined BR_LIBRARY +# if defined _WIN32 || defined __CYGWIN__ +# define BR_EXPORT __declspec(dllexport) +# else +# define BR_EXPORT __attribute__((visibility("default"))) +# endif #else -# if defined BR_LIBRARY -# if defined _WIN32 || defined __CYGWIN__ -# define BR_EXPORT __declspec(dllexport) -# else -# define BR_EXPORT __attribute__((visibility("default"))) -# endif +# if defined _WIN32 || defined __CYGWIN__ +# define BR_EXPORT __declspec(dllimport) # else -# if defined _WIN32 || defined __CYGWIN__ -# define BR_EXPORT __declspec(dllimport) -# else -# define BR_EXPORT -# endif +# define BR_EXPORT # endif #endif