File tree 4 files changed +17
-21
lines changed 4 files changed +17
-21
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 30
30
// / Remarks: it is automatically defined in the generated amalgamated header.
31
31
// #define JSON_IS_AMALGAMATION
32
32
33
+ // Export macros for DLL visibility
34
+ #if defined(JSON_DLL_BUILD)
35
+ #if defined(_MSC_VER) || defined(__MINGW32__)
36
+ #define JSON_API __declspec (dllexport)
37
+ #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
38
+ #elif defined(__GNUC__) || defined(__clang__)
39
+ #define JSON_API __attribute__ ((visibility(" default" )))
40
+ #endif // if defined(_MSC_VER)
41
+
42
+ #elif defined(JSON_DLL)
43
+ #if defined(_MSC_VER) || defined(__MINGW32__)
44
+ #define JSON_API __declspec (dllimport)
45
+ #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
46
+ #endif // if defined(_MSC_VER)
47
+ #endif // ifdef JSON_DLL_BUILD
48
+
33
49
#if !defined(JSON_API)
34
50
#define JSON_API
35
51
#endif
Original file line number Diff line number Diff line change 6
6
#ifndef JSON_JSON_H_INCLUDED
7
7
#define JSON_JSON_H_INCLUDED
8
8
9
- #include "autolink .h"
9
+ #include "config .h"
10
10
#include "json_features.h"
11
11
#include "reader.h"
12
12
#include "value.h"
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ project(
21
21
jsoncpp_headers = [
22
22
' include/json/allocator.h' ,
23
23
' include/json/assertions.h' ,
24
- ' include/json/autolink.h' ,
25
24
' include/json/config.h' ,
26
25
' include/json/json_features.h' ,
27
26
' include/json/forwards.h' ,
You can’t perform that action at this time.
0 commit comments