Skip to content

Commit

Permalink
Merge 8.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Oct 9, 2023
2 parents d2195e8 + 6dc845a commit 214d96a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions generic/tk.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ typedef struct Tk_StyledElement_ *Tk_StyledElement;

typedef const char *Tk_Uid;

#if (TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION == 6)
# define Tcl_Size int
#if (TCL_MAJOR_VERSION < 9) && (TCL_MINOR_VERSION < 7)
# ifndef Tcl_Size
# define Tcl_Size int
# endif
# define TCL_SIZE_MAX INT_MAX
# define TCL_SIZE_MODIFIER ""
#endif
Expand Down
4 changes: 4 additions & 0 deletions win/rules.vc
Original file line number Diff line number Diff line change
Expand Up @@ -1533,6 +1533,10 @@ INCLUDES = $(INCLUDES) -I"$(GENERICDIR)" -I"$(WIN_DIR)" -I"$(COMPATDIR)"
# cflags contains generic flags used for building practically all object files
cflags = -nologo -c $(COMPILERFLAGS) $(carch) $(cwarn) -Fp$(TMP_DIR)^\ $(cdebug)

!if $(TCL_MAJOR_VERSION) == 8 && $(TCL_MINOR_VERSION) < 7
cflags = $(cflags) -DTcl_Size=int
!endif

# appcflags contains $(cflags) and flags for building the application
# object files (e.g. tclsh, or wish) pkgcflags contains $(cflags) plus
# flags used for building shared object files The two differ in the
Expand Down

0 comments on commit 214d96a

Please sign in to comment.