Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP4:Update
libu2f-host
json-c-update.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File json-c-update.patch of Package libu2f-host
commit 840f01135d2892f45e71b9e90405de587991bd03 Author: Björn Esser <besser82@fedoraproject.org> Date: Mon Apr 13 14:12:25 2020 +0200 Add support for upcoming json-c 0.14.0. TRUE/FALSE are not defined anymore. 1 and 0 are used instead. diff --git a/u2f-host/u2fmisc.c b/u2f-host/u2fmisc.c index e40ca3d..5a032ce 100644 --- a/u2f-host/u2fmisc.c +++ b/u2f-host/u2fmisc.c @@ -33,6 +33,19 @@ typedef int json_bool; #define u2fh_json_object_object_get(obj, key, value) (value = json_object_object_get(obj, key)) == NULL ? (json_bool)FALSE : (json_bool)TRUE #endif +/* json-c 0.13.99 does not define TRUE/FALSE anymore + * the json-c maintainers replaced them with pure 1/0 + * https://github.com/json-c/json-c/commit/0992aac61f8b + */ +#if defined JSON_C_VERSION_NUM && JSON_C_VERSION_NUM >= ((13 << 8) | 99) +#ifndef FALSE +#define FALSE 0 +#endif +#ifndef TRUE +#define TRUE 1 +#endif +#endif + static void dumpHex (unsigned char *data, int offs, int len) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor