mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +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"
|
||||
#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
|
||||
|
|
Loading…
Reference in a new issue