u_json: Properly silence secure CRT warnings.

This commit is contained in:
Ryan Pavlik 2020-10-08 16:58:13 -05:00
parent 48eb00f1c8
commit 3f83b1da92

View file

@ -9,15 +9,18 @@
*/
#include "util/u_json.h"
#ifndef XRT_HAVE_SYSTEM_CJSON
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
#define _CRT_SECURE_NO_WARNINGS
#endif
#endif
#include "util/u_logging.h"
#include <assert.h>
#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