3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 13:29:25 +01:00

json: Set defines before including shared/jsmn.h

This commit is contained in:
Marcel Holtmann 2022-11-02 11:23:03 +01:00
parent d4da6b5bec
commit 4ffcde8125
2 changed files with 4 additions and 2 deletions

View File

@ -588,8 +588,7 @@ EXTRA_DIST = src/genbuiltin src/iwd.service.in src/net.connman.iwd.service \
AM_CFLAGS = $(ell_cflags) -fvisibility=hidden \
-DUNITDIR=\""$(top_srcdir)/unit/"\" \
-DCERTDIR=\""$(top_builddir)/unit/"\" \
-DJSMN_PARENT_LINKS -DJSMN_STRICT
-DCERTDIR=\""$(top_builddir)/unit/"\"
if MAINTAINER_MODE
AM_CFLAGS += -DHAVE_PKCS8_SUPPORT

View File

@ -30,6 +30,9 @@
#include "src/json.h"
#define JSMN_STATIC
#define JSMN_STRICT
#define JSMN_PARENT_LINKS
#include "shared/jsmn.h"
/* Max number of tokens supported. Increase if larger objects are expected */