From 28d13de5b738082cae4f9026a09fa2198066e1c6 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Thu, 12 Dec 2019 22:54:42 -0500 Subject: [PATCH] bits256 fixes from upstream --- src/komodo_cJSON.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/komodo_cJSON.h b/src/komodo_cJSON.h index c104a4f79..3586b5cbf 100644 --- a/src/komodo_cJSON.h +++ b/src/komodo_cJSON.h @@ -57,6 +57,12 @@ extern "C" { #endif +#ifndef _BITS256 +#define _BITS256 + union _bits256 { uint8_t bytes[32]; uint16_t ushorts[16]; uint32_t uints[8]; uint64_t ulongs[4]; uint64_t txid; }; + typedef union _bits256 bits256; +#endif + /* Macros for creating things quickly. */ #define cJSON_AddNullToObject(object,name) cJSON_AddItemToObject(object, name, cJSON_CreateNull()) #define cJSON_AddTrueToObject(object,name) cJSON_AddItemToObject(object, name, cJSON_CreateTrue())