quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

commit 16782d555e0787b86499f78b7430450cce922dee
parent ceb15f5925dc26c3ba28a1fda4419bceea8442ba
Author: Florian Dold <dold@taler.net>
Date:   Sun,  9 Aug 2026 21:50:15 +0200

quickjs: use the standard offsetof definition

Diffstat:
Mquickjs/cutils.h | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/quickjs/cutils.h b/quickjs/cutils.h @@ -25,6 +25,7 @@ #ifndef CUTILS_H #define CUTILS_H +#include <stddef.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> @@ -40,9 +41,6 @@ #define stringify(s) tostring(s) #define tostring(s) #s -#ifndef offsetof -#define offsetof(type, field) ((size_t) &((type *)0)->field) -#endif #ifndef countof #define countof(x) (sizeof(x) / sizeof((x)[0])) #endif