Maybe we misunderstand each other? I understood your question as a proposal to make -D_WIN32_WINNT=xy imply also implicitly some --enable-threads=xy. That would be a problem, because semantics of -D_WIN32_WINNT=xy should imho have no implication on chosen run time, but just on what's made available in Win32 header files.
Martin > If we use --enable-threads=win32-win7 , the result gcc running on and > target to win7 or later looks reasonable. > > On Thu, Apr 14, 2016 at 2:34 PM, Martin Mitáš <[email protected]> wrote: >> >> >> Dne 14. 4. 2016 v 5:02 Dongsheng Song napsal(a): >>> Currently, --enable-threads=win32 map to gthr-win32.{h|c}, could we map >>> >>> --enable-threads=win32-vista >>> --enable-threads=win32-win7 // Windows 7 and Windows Server 2008 R2 >>> --enable-threads=win32-win8 // Windows 8 and Windows Server 2012 >>> --enable-threads=win32-win8.1 // Windows 8.1 and Windows Server 2012 R2 >>> --enable-threads=win32-win10 // Windows 10 and Windows Server 2016 >>> >>> to gthr-windows.{h|c} with the corresponding _WIN32_WINNT macros ? >> >> Please don't. >> >> Consider that something like -D_WIN32_WINNT=xy -DWINVER=_WIN32_WINNT >> is often used by projects to see newer Win32API structures and #defines, >> but the project often still supports older windows in run time. A lot >> of code out there plays with GetProcAddress() but doesn't want to >> redefine >> all the new types and constants. >> >> Best regards, >> Martin >> >> >> ------------------------------------------------------------------------------ >> Find and fix application performance issues faster with Applications >> Manager >> Applications Manager provides deep performance insights into multiple >> tiers of >> your business applications. It resolves application problems quickly and >> reduces your MTTR. Get your free trial! >> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >> _______________________________________________ >> Mingw-w64-public mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications > Manager > Applications Manager provides deep performance insights into multiple > tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > Mingw-w64-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
