summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-21 09:20:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-21 09:20:54 (GMT)
commit3b786ffebeb7769d34099ea7064532501dc6aee5 (patch)
treeea95523b9a7a3e14334066aac23dffa90dda6617 /win
parent1dbcf0c93e804523b3eed57e1716fdec5497f31c (diff)
parent46c577d5c882b4ad5ca458e7591b3391327194d9 (diff)
downloadtcl-3b786ffebeb7769d34099ea7064532501dc6aee5.zip
tcl-3b786ffebeb7769d34099ea7064532501dc6aee5.tar.gz
tcl-3b786ffebeb7769d34099ea7064532501dc6aee5.tar.bz2
Make it more likely that compiles with VS2012/VS2013 actually work on Windows XP. See: [https://tedwvc.wordpress.com/2014/01/01/how-to-target-xp-with-vc2012-or-vc2013-and-continue-to-use-the-windows-8-x-sdk/]
Diffstat (limited to 'win')
-rw-r--r--win/Makefile.in2
-rw-r--r--win/rules.vc2
2 files changed, 2 insertions, 2 deletions
diff --git a/win/Makefile.in b/win/Makefile.in
index 28ffe0a..066e6b1 100644
--- a/win/Makefile.in
+++ b/win/Makefile.in
@@ -81,7 +81,7 @@ CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
#CFLAGS = $(CFLAGS_DEBUG)
#CFLAGS = $(CFLAGS_OPTIMIZE)
#CFLAGS = $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE)
-CFLAGS = @CFLAGS@ @CFLAGS_DEFAULT@ -DUNICODE -D_UNICODE
+CFLAGS = @CFLAGS@ @CFLAGS_DEFAULT@ -DUNICODE -D_UNICODE -D_ATL_XP_TARGETING
# To compile without backward compatibility and deprecated code uncomment the
# following
diff --git a/win/rules.vc b/win/rules.vc
index d4c2f35..30e8c2f 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -159,7 +159,7 @@ DEBUGFLAGS = $(DEBUGFLAGS) -RTC1
DEBUGFLAGS = $(DEBUGFLAGS) -GZ
!endif
-COMPILERFLAGS =-W3 -DUNICODE -D_UNICODE
+COMPILERFLAGS =-W3 /DUNICODE /D_UNICODE /D_ATL_XP_TARGETING
# In v13 -GL and -YX are incompatible.
!if [nmakehlp -c -YX]