summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-21 12:40:22 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-21 12:40:22 (GMT)
commitc6f38f9550c0b06da628964a298e5b290f8a1f8f (patch)
tree6c8a2a0cf40652c4468ae18a1fb949d2ac69db3d
parentb0e0eec1d27b65fc2dc9726feb21c5b00d4a2f86 (diff)
downloadtk-c6f38f9550c0b06da628964a298e5b290f8a1f8f.zip
tk-c6f38f9550c0b06da628964a298e5b290f8a1f8f.tar.gz
tk-c6f38f9550c0b06da628964a298e5b290f8a1f8f.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/]
-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 1d18b60..632e216 100644
--- a/win/Makefile.in
+++ b/win/Makefile.in
@@ -171,7 +171,7 @@ NO_DEPRECATED_FLAGS =
#CFLAGS = $(CFLAGS_DEBUG)
#CFLAGS = $(CFLAGS_OPTIMIZE)
#CFLAGS = $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE)
-CFLAGS = @CFLAGS@ @CFLAGS_DEFAULT@ $(NO_DEPRECATED_FLAGS)
+CFLAGS = @CFLAGS@ @CFLAGS_DEFAULT@ $(NO_DEPRECATED_FLAGS) -D_ATL_XP_TARGETING
# Special compiler flags to use when building man2tcl on Windows.
MAN2TCLFLAGS = @MAN2TCLFLAGS@
diff --git a/win/rules.vc b/win/rules.vc
index a43fac6..e38fd1a 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -159,7 +159,7 @@ DEBUGFLAGS = $(DEBUGFLAGS) -RTC1
DEBUGFLAGS = $(DEBUGFLAGS) -GZ
!endif
-COMPILERFLAGS =-W3
+COMPILERFLAGS =-W3 /D_ATL_XP_TARGETING
# In v13 -GL and -YX are incompatible.
!if [nmakehlp -c -YX]