bits256 fixes from upstream

This commit is contained in:
Duke Leto
2019-12-12 22:54:42 -05:00
parent 56bc76c425
commit 28d13de5b7

View File

@@ -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())