Browse Source

bits256 fixes from upstream

sietch
Duke Leto 5 years ago
parent
commit
28d13de5b7
  1. 6
      src/komodo_cJSON.h

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

Loading…
Cancel
Save