Commit 310faeb848b31cbc87ed8c38d7bd720127966e87
1 parent
ff624aff
removed old SWIG references
Showing
2 changed files
with
9 additions
and
25 deletions
openbr/openbr.h
| @@ -41,18 +41,6 @@ extern "C" { | @@ -41,18 +41,6 @@ extern "C" { | ||
| 41 | * \section managed_return_value Managed Return Value | 41 | * \section managed_return_value Managed Return Value |
| 42 | * Memory for <tt>const char*</tt> return values is managed internally and guaranteed until the next call to the function. | 42 | * Memory for <tt>const char*</tt> return values is managed internally and guaranteed until the next call to the function. |
| 43 | * | 43 | * |
| 44 | - * \section python_api Python API | ||
| 45 | - * A Python API is available via <a href="http://www.swig.org/">SWIG</a>. | ||
| 46 | - * \code | ||
| 47 | - * $ ls include/br/python | ||
| 48 | - * \endcode | ||
| 49 | - * | ||
| 50 | - * \section java_api Java API | ||
| 51 | - * A Java API is available via <a href="http://www.swig.org/">SWIG</a>. | ||
| 52 | - * \code | ||
| 53 | - * $ ls include/br/java | ||
| 54 | - * \endcode | ||
| 55 | - * | ||
| 56 | * \section examples Examples | 44 | * \section examples Examples |
| 57 | * - \ref c_face_recognition_evaluation | 45 | * - \ref c_face_recognition_evaluation |
| 58 | * | 46 | * |
openbr/openbr_export.h
| @@ -17,21 +17,17 @@ | @@ -17,21 +17,17 @@ | ||
| 17 | #ifndef OPENBR_EXPORT_H | 17 | #ifndef OPENBR_EXPORT_H |
| 18 | #define OPENBR_EXPORT_H | 18 | #define OPENBR_EXPORT_H |
| 19 | 19 | ||
| 20 | -#if defined SWIG | ||
| 21 | -# define BR_EXPORT extern | 20 | +#if defined BR_LIBRARY |
| 21 | +# if defined _WIN32 || defined __CYGWIN__ | ||
| 22 | +# define BR_EXPORT __declspec(dllexport) | ||
| 23 | +# else | ||
| 24 | +# define BR_EXPORT __attribute__((visibility("default"))) | ||
| 25 | +# endif | ||
| 22 | #else | 26 | #else |
| 23 | -# if defined BR_LIBRARY | ||
| 24 | -# if defined _WIN32 || defined __CYGWIN__ | ||
| 25 | -# define BR_EXPORT __declspec(dllexport) | ||
| 26 | -# else | ||
| 27 | -# define BR_EXPORT __attribute__((visibility("default"))) | ||
| 28 | -# endif | 27 | +# if defined _WIN32 || defined __CYGWIN__ |
| 28 | +# define BR_EXPORT __declspec(dllimport) | ||
| 29 | # else | 29 | # else |
| 30 | -# if defined _WIN32 || defined __CYGWIN__ | ||
| 31 | -# define BR_EXPORT __declspec(dllimport) | ||
| 32 | -# else | ||
| 33 | -# define BR_EXPORT | ||
| 34 | -# endif | 30 | +# define BR_EXPORT |
| 35 | # endif | 31 | # endif |
| 36 | #endif | 32 | #endif |
| 37 | 33 |