-f makefile.vc INSTALLDIR=C:\tk8.6.7

Microsoft (R) Program Maintenance Utility Version 14.11.25547.0
Copyright (C) Microsoft Corporation.  All rights reserved.

===============================================================================
*** Compiler has 'Optimizations'
*** Intermediate directory will be
*** Output directory will be '.\Release_AMD64_VC13'
*** Suffix for binaries will be 't'
*** Optional defines are -DSTDC_HEADERS -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DNDEBUG -DTCL_CFG_OPTIMIZED -DTCL_CFG_DO64BIT'
*** Compiler version 13. Target machine is AMD64
*** Host architecture is AMD64
*** Compiler options '-W3 /DUNICODE /D_UNICODE /D_ATL_XP_TARGETING  -Ot -Oi -fp:strict -Gs -GS -GL  -RTC1 -W3'
*** Link options '-ltcg'
*** Dependency rules are not being used.

        cl -nologo -c -W3 /DUNICODE /D_UNICODE /D_ATL_XP_TARGETING -W3 -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE -Ot -Oi -fp:strict -Gs -GS -GL -DBUILD_ttk -DSTDC_HEADERS -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DNDEBUG -DTCL_CFG_OPTIMIZED -DTCL_CFG_DO64BIT  -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1  -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1  -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1  -DSUPPORT_CONFIG_EMBEDDED  -DHAVE_UXTHEME_H=1 -Dinline=__inline -Zl -DSTATIC_BUILD
tkStubLib.c
C:\Program Files (x86)\Microsoft Visual warning C4005: 'inline': macro redefinition
C:\Program Files (x86)\Microsoft Visual note: command-line arguments:  see previous definition of 'inline'
C:\Program Files (x86)\Microsoft Visual fatal error C1189: #error:  The C Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual : return code '0x2'
Stop.


It appears that tk declares the keyword inline as a macro somewhere in one of the headers, I have tried to find it but haven't managed to yet, hopefully someone better acquainted with the source code will no where to look.

This is should be an easy fix but prevents building with nmake on windows