Closed cxsup closed 8 years ago
intptr_t
requires C99 and because of that the patch as is may broke build for non-Windows OSes.
Probably you need to define handle type and guard platform-specific code with #ifdef
.
Are you sure the #ifdef
is necessary given the patch is specific to platforms/windows
files? But it wouldn't hurt to use: #ifdef _WIN64
Oh, yes. You're right! I didn't noticed that.
In this case #ifdef _WIN64
is not required, probably..
Could you please fork and create pull request?
Done.
The Windows platform implementation for directory scan is partially wired for Win32 causing truncation of the handle returned by
_wfindfirst64
. The issue is solved by promoting the handle to anintptr_t
:Here's the entire diff: