diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-09-21 12:44:26 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-09-21 12:44:26 (GMT) |
commit | a996a938e03b66b6555ece11854c31c45c673669 (patch) | |
tree | 651e9f8207ab715b32d53f707e30e9169b503db1 /win | |
parent | 9759a4f9b6f61757dc505a923c07951e560e47a3 (diff) | |
parent | 343263c3c022631efcb2fa95178af1defc20301f (diff) | |
download | tk-a996a938e03b66b6555ece11854c31c45c673669.zip tk-a996a938e03b66b6555ece11854c31c45c673669.tar.gz tk-a996a938e03b66b6555ece11854c31c45c673669.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.in | 2 | ||||
-rw-r--r-- | win/rules.vc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/win/Makefile.in b/win/Makefile.in index f1018eb..7e48213 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -170,7 +170,7 @@ LDFLAGS_OPTIMIZE = @LDFLAGS_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 # Special compiler flags to use when building man2tcl on Windows. MAN2TCLFLAGS = @MAN2TCLFLAGS@ diff --git a/win/rules.vc b/win/rules.vc index 0d8cd6b..6fd079a 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]
|