On Tue, 3 Dec 2013, Diego Biurrun wrote:
Basically I started looking into splitting the libc detection and
duplicating all the test functions started becoming tedious. Plus,
some of the tests set variables as a side effect and are thus unsafe
if done through the host toolchain. One would have to add tests that
do not set the variables or duplicate all the variables as host versions.
Clearly a rabbit hole, that would go away completely with a CPP-based
msvcrt test. So finding such a test is the desirable solution.
crtversion.h seems to contain some pretty useful things, like:
#define _VC_CRT_MAJOR_VERSION 10
So something like 'check_cpp_condition crtversion.h "defined
_VC_CRT_MAJOR_VERSION"' could actually work and doesn't seem all that bad.
This seems to be present in MSVC 2010, 2012 and 2013 (and is absent from
mingw32/64 as well, which means we don't have to keep track of testing
mingw before msvcrt).
// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel