[llvm-commits] _WIN32_WINNT as predefined (was Re: [Review request][Win64] Patches for Mingw-w64(and mingw64-clang))
NAKAMURA Takumi
geek4civic at gmail.com
Mon Feb 7 16:52:24 PST 2011
Good morning, Anton and Eric.
2011/2/7 Anton Korobeynikov <anton at korobeynikov.info>:
>> In the case of mingw-w64, _WIN32_WINNT would be defined (as 0x0502) by
>> system headers even if we did not provide predefined _WIN32_WINNT. In
>> reverse, predefined _WIN32_WINNT might affect to system headers on
>> mingw-w64.
> If system headers have all necessary stuff defined why should be
> bother defining them?
Nope. It would be easier to suppress warnings, simply to undefine and
redefine _WIN32_WINNT in Support/Windows/Windows.h.
My aim is described below;
> Could you please clarify what is the problem you're trying to solve
> here? It might allow everyone better understand the needs, etc.
My aim was to work with AC_CHECK_DECL, (not AC_CHECK_LIB).
1) It needs AC_DEFINE(s) to find some decls. (_WIN32_WINNT,
MINGW_HAS_SECURE_API, &c)
2) AC_DEFINE(s) are written out to config.h.in.
3) I noticed config.h.in could provide those definitions.
4) I could remove those definitions from Windows/Windows.h.
It would be overwork, I thought at last night. I will attempt to
rework for easier tweaks later.
Thank you, ...Takumi
More information about the llvm-commits
mailing list