aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/aws-crt-cpp/patches/01-move-include-from-namespace.patch
blob: 807b008f39976843b114c7d37acb6fe07f7ad2ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- contrib/restricted/aws/aws-crt-cpp/include/aws/crt/external/cJSON.h	(f680f339877c3c3539c85345ee15f023012893c9)
+++ contrib/restricted/aws/aws-crt-cpp/include/aws/crt/external/cJSON.h	(working tree)
@@ -44,8 +44,6 @@
 #ifndef cJSON__h
 #define cJSON__h
 
-namespace Aws {
-
 #if !defined(__WINDOWS__) && (defined(WIN32) || defined(WIN64) || defined(_MSC_VER) || defined(_WIN32))
 #define __WINDOWS__
 #endif
@@ -117,6 +115,8 @@ then using the CJSON_API_VISIBILITY flag to "export" the same symbols the way CJ
 #define cJSON_IsReference 256
 #define cJSON_StringIsConst 512
 
+namespace Aws {
+
 /* The cJSON structure: */
 typedef struct cJSON
 {