File: new-jsoncpp.patch

package info (click to toggle)
rt-app 1.0-1.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 552 kB
  • sloc: ansic: 2,238; python: 260; sh: 129; makefile: 33
file content (23 lines) | stat: -rw-r--r-- 650 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Patch for newer json-c removed is_error
Author: Gianfranco Costamagna <locutusofborg@debian.org>
Last-Update: 2020-07-30

Index: rt-app-1.0/src/rt-app_parse_config.c
===================================================================
--- rt-app-1.0.orig/src/rt-app_parse_config.c
+++ rt-app-1.0/src/rt-app_parse_config.c
@@ -30,6 +30,14 @@ Foundation, Inc., 51 Franklin Street, Fi
 #include "rt-app_utils.h"
 #include "rt-app_parse_config.h"
 
+// not exported anymore by new json-c
+#ifndef TRUE
+#define TRUE 1
+#endif
+#ifndef FALSE
+#define FALSE 0
+#endif
+
 #define PFX "[json] "
 #define PFL "         "PFX
 #define PIN PFX"    "