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 ?
This commit is contained in:
Darryl L. Miles 2024-10-21 09:26:25 +01:00 committed by Tim Edwards
parent 3931c4aff1
commit 7e5d0b0688
1 changed files with 8 additions and 0 deletions

View File

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