LIBSO=1 compile darknet.so library on Linux

This commit is contained in:
AlexeyAB
2017-08-04 17:57:05 +03:00
parent de625aa4a7
commit fd671a7a4a
2 changed files with 30 additions and 4 deletions

View File

@ -11,9 +11,17 @@
#endif // OPENCV
#ifdef YOLODLL_EXPORTS
#if defined(_MSC_VER)
#define YOLODLL_API __declspec(dllexport)
#else
#define YOLODLL_API __attribute__((visibility("default")))
#endif
#else
#if defined(_MSC_VER)
#define YOLODLL_API __declspec(dllimport)
#else
#define YOLODLL_API
#endif
#endif
struct bbox_t {