M/c++_api/inc/DM/config.hpp
1 #ifndef DM_CONFIG_HPP_INCLUDED
2 #define DM_CONFIG_HPP_INCLUDED
3 
4 #ifdef _MSC_VER
5  #pragma once
6 #endif
7 
8 #ifdef _MSC_VER
9  #ifdef DATAMANAGER_EXPORTS
10  #define DM_API __declspec(dllexport)
11  #elif DATAMANAGER_STATIC
12  #define DM_API
13  #else
14  #define DM_API //__declspec(dllimport)
15  #endif
16 #else
17  #define DM_API
18 #endif
19 
20 
21 //STL defines
22 #ifndef _HAS_ITERATOR_DEBUGGING
23  #define _HAS_ITERATOR_DEBUGGING 0
24 #endif
25 #ifndef _SECURE_SCL
26  #define _SECURE_SCL 0
27 #endif
28 
29 #define DM_NAMESPACE_BEGIN namespace DM {
30 #define DM_NAMESPACE_END }
31 #define USING_NAMESPACE_DM using namespace DM;
32 
33 #include <cstddef>
34 #include <cstdint>
35 
36 DM_NAMESPACE_BEGIN
37 
38 #ifdef _UNICODE
39  typedef wchar_t char_type;
40  #define __T(x) L ## x
41 #else
42  typedef char char_type;
43  #define __T(x) x
44 #endif
45 
46 typedef std::size_t size_type;
47 typedef std::ptrdiff_t ptrdiff_type;
48 
49 DM_NAMESPACE_END
50 
51 
52 #endif //DM_CONFIG_HPP_INCLUDED