Skip to content

Commit

Permalink
TCL9: FIXME OPTIONAL magic.h ClientData
Browse files Browse the repository at this point in the history
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 ?
  • Loading branch information
dlmiles committed Oct 21, 2024
1 parent 73b5bc2 commit b590507
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions utils/magic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b590507

Please sign in to comment.