mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
u_json: Properly silence secure CRT warnings.
This commit is contained in:
parent
48eb00f1c8
commit
3f83b1da92
|
@ -9,15 +9,18 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "util/u_json.h"
|
#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 "util/u_logging.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifndef XRT_HAVE_SYSTEM_CJSON
|
#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.
|
// This includes the c file completely.
|
||||||
#include "cjson/cJSON.c"
|
#include "cjson/cJSON.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue