u/json: Silence warnings on MSVC

This commit is contained in:
Ryan Pavlik 2020-07-15 19:39:11 -07:00 committed by Jakob Bornecrantz
parent 7685f49adb
commit 1dffe58952

View file

@ -15,6 +15,9 @@
#include <stdio.h>
#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