Remove guard for C++ in cJSON.h
authorCharles Giessen <charles@lunarg.com>
Fri, 12 May 2023 22:22:56 +0000 (16:22 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Mon, 29 May 2023 23:45:08 +0000 (17:45 -0600)
The cJSON.h library is only used by C code, so the macro guard for C++ is not
needed.

loader/cJSON.h

index a51b1e54e300872ae1cc7118e8594cb923cbfd74..c2bc71f73bfaf02e37003a4b7d31e7ac78186c02 100644 (file)
 
 #include <vulkan/vulkan_core.h>
 
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
 /* cJSON Types: */
 #define cJSON_False 0
 #define cJSON_True 1
@@ -157,10 +153,6 @@ void cJSON_Minify(char *json);
 #define cJSON_SetIntValue(object, val) ((object) ? (object)->valueint = (object)->valuedouble = (val) : (val))
 #define cJSON_SetNumberValue(object, val) ((object) ? (object)->valueint = (object)->valuedouble = (val) : (val))
 
-#if defined(__cplusplus)
-}
-#endif
-
 // Helper functions to using JSON
 
 struct loader_instance;