DeepSight SDK  3.0.0
DeepSight SDK - crowd face analysis
ds_exports.h
Go to the documentation of this file.
1 /*
2  * DeepSight face analysis SDK
3  * Copyright (C) 2013-2023 Raydiant Inc. - All Rights Reserved
4  *
5  * This file is subject to the terms and conditions defined in
6  * the 'LICENSE.txt' file, which is part of this source code package.
7  *
8  */
9 
10 #ifndef DS_EXPORTS_H
11 #define DS_EXPORTS_H
12 
13 #ifdef _WIN32
14  #ifdef DS_LIBRARY_EXPORTS
15  #define DS_API __declspec(dllexport)
16  #else
17  #define DS_API __declspec(dllimport)
18  #endif
19  // get rid of STL/OpenCV related dll export warnings, see the following articles on why this doesn't affect STL/OpenCV related export warnings
20  // https://msdn.microsoft.com/en-us/library/esew7y1w.aspx
21  // https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4251?view=vs-2017
22  #pragma warning(disable:4251)
23 #else // Linux
24  #define DS_API __attribute__ ((visibility ("default")))
25 #endif
26 
27 #endif /* DS_EXPORTS_H */