From 1dffe58952dc8e9bd4df7e439c0f8d2a417ef67a Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Wed, 15 Jul 2020 19:39:11 -0700 Subject: [PATCH] u/json: Silence warnings on MSVC --- src/xrt/auxiliary/util/u_json.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xrt/auxiliary/util/u_json.c b/src/xrt/auxiliary/util/u_json.c index 91c5f0eaf..3ff2fd6ca 100644 --- a/src/xrt/auxiliary/util/u_json.c +++ b/src/xrt/auxiliary/util/u_json.c @@ -15,6 +15,9 @@ #include #ifndef XRT_HAVE_SYSTEM_CJSON +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif // This includes the c file completely. #include "cjson/cJSON.c" #endif