From: JonY <jo...@us...> - 2010-10-01 00:02:53
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/1/2010 07:31, Xiaofan Chen wrote: > On Wed, Sep 29, 2010 at 9:52 PM, JonY <jo...@us...> wrote: >> On 9/29/2010 21:39, Dongsheng Song wrote: >>> But we can not ensure third party software DO NOT call those functions, >>> so we must drop them or defined in guard blocks like this: >>> >>> /* Windows 7 */ >>> #if _WIN32_WINNT >= 0x0601 >>> #endif >>> >>> /* Windows Vista or Server 2008 */ >>> #if _WIN32_WINNT >= 0x0600 >>> #endif >>> >> hacking the headers will not work due to how link tests work, linking >> will still succeed even without the prototype declared. > > But I feel this is still better than nothing. This depends how the other > 3rd party project carries out the tests. If it is only linking test then > it works. But if it is more than that (actually run it), then it will fail > under XP. > In the OP's situation, we can safely assume it is a linktime only test. Autotools sees wcsnlen and assumes it is usable on his system. >> Dropping them is also out of the question if we want to support Vista/7 >> users. > > BTW, what is the supported OS for MinGW-w64 32bit and 64bit > tool chain. Win2k onwards? Or XP onwards? I could not find this > out from the Wiki. > XP onwards, ymmv with Win2k. Kai is already working on a wcsnlen substitute. It is still lacking utf-16 verification routines. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (MingW32) iEYEARECAAYFAkylIOYACgkQp56AKe10wHd75ACfZlQ0MMcG8YnqyJk0K+T3P7dt B44An3aOMUNctQsnxHAxsh3UYAmeXc4S =fC2I -----END PGP SIGNATURE----- |