From 7e5d0b06889f58329994f8b280b4d418a799bb06 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Mon, 21 Oct 2024 09:26:25 +0100 Subject: [PATCH] TCL9: FIXME OPTIONAL magic.h ClientData This did not work as expected. Maybe that indicate this should have a slighlt restructure so the tcl.h definition is always given a chance to provide type. Or maybe autoconf should detect the type and provide in config.h ? --- utils/magic.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils/magic.h b/utils/magic.h index 0e3ec1e0..465920f0 100644 --- a/utils/magic.h +++ b/utils/magic.h @@ -60,7 +60,15 @@ typedef int64_t dlong; /* --------------------- Universal pointer type ----------------------- */ #ifndef _CLIENTDATA +// #ifdef MAGIC_WRAPPER +//#error "ClientData type is not defined, but we are building with TCL support, so we expect TCL to provide this type definition" +// #endif + #ifndef NO_VOID +typedef void *ClientData; + #else typedef pointertype ClientData; + #endif +#define _CLIENTDATA #endif /* this is not the (int) C type, but the conceptual difference between