blob: dfab8fbbdfef9821e7f5764346b4fa1b7ddd23e2 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001From 47472da6e8900773c26da8fd26699367447d97a6 Mon Sep 17 00:00:00 2001
Brad Bishop19323692019-04-05 15:28:33 -04002From: Chen Qi <Qi.Chen@windriver.com>
3Date: Mon, 25 Feb 2019 16:53:06 +0800
William A. Kennington IIIac69b482021-06-02 12:28:27 -07004Subject: [PATCH] test-json.c: define M_PIl
Brad Bishop19323692019-04-05 15:28:33 -04005
6Fix the following compile failure:
7src/test/test-json.c:305:50: error: 'M_PIl' undeclared (first use in this function); did you mean 'M_PI'?
8
9Upstream-Status: Inappropriate [musl specific]
10
11Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
William A. Kennington IIIac69b482021-06-02 12:28:27 -070012
Brad Bishop19323692019-04-05 15:28:33 -040013---
14 src/test/test-json.c | 4 ++++
15 1 file changed, 4 insertions(+)
16
Brad Bishop19323692019-04-05 15:28:33 -040017--- a/src/test/test-json.c
18+++ b/src/test/test-json.c
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000019@@ -14,6 +14,10 @@
Brad Bishopc342db32019-05-15 21:57:59 -040020 #include "tests.h"
Brad Bishop19323692019-04-05 15:28:33 -040021 #include "util.h"
22
23+#ifndef M_PIl
24+#define M_PIl 3.141592653589793238462643383279502884L
25+#endif
26+
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000027 static void test_tokenizer_one(const char *data, ...) {
Brad Bishop19323692019-04-05 15:28:33 -040028 unsigned line = 0, column = 0;
29 void *state = NULL;