From: Xiaofan C. <xia...@gm...> - 2010-09-30 23:31:41
|
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. > 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. -- Xiaofan |