Skip to content

Commit

Permalink
Fix [22d2341c9d]: Building extensions for Tk 8 and Tcl 8 in a Tcl 9 e…
Browse files Browse the repository at this point in the history
…nvironment. Add a configure "--with-tk8" option
  • Loading branch information
jan.nijtmans committed Nov 13, 2024
2 parents d512d40 + f2e8a54 commit f01cc2b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion win/rules.vc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ _RULES_VC = 1
# For modifications that are not backward-compatible, you *must* change
# the major version.
RULES_VERSION_MAJOR = 1
RULES_VERSION_MINOR = 12
RULES_VERSION_MINOR = 13

# The PROJECT macro must be defined by parent makefile.
!if "$(PROJECT)" == ""
Expand Down Expand Up @@ -881,6 +881,10 @@ USE_THREAD_ALLOC= 0
!message *** Build for Tcl8
TCL_BUILD_FOR = 8
!endif
!if [nmakehlp -f $(OPTS) "tk8"]
!message *** Build for Tk8
TK_BUILD_FOR = 8
!endif

!if $(TCL_MAJOR_VERSION) == 8
!if [nmakehlp -f $(OPTS) "time64bit"]
Expand Down Expand Up @@ -1451,6 +1455,9 @@ OPTDEFINES = $(OPTDEFINES) /D_USE_64BIT_TIME_T=1
!if "$(TCL_BUILD_FOR)" == "8"
OPTDEFINES = $(OPTDEFINES) /DTCL_MAJOR_VERSION=8
!endif
!if "$(TK_BUILD_FOR)" == "8"
OPTDEFINES = $(OPTDEFINES) /DTK_MAJOR_VERSION=8
!endif

# Like the TEA system only set this non empty for non-Tk extensions
# Note: some extensions use PACKAGE_NAME and others use PACKAGE_TCLNAME
Expand Down

0 comments on commit f01cc2b

Please sign in to comment.