mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
u/json: Silence warnings on MSVC
This commit is contained in:
parent
7685f49adb
commit
1dffe58952
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue