The attached patch fix a few warning when compiling translated C with VC++:
- direct.h not included (required for mkdir...)
- mkdir does not takes a mode parameter
- redefined macros

There is also a warning which I haven't fixed:

long LL_os_lseek(long fd, long pos, long how) {
#if defined(MS_WIN64) || defined(MS_WINDOWS)
PY_LONG_LONG res;
// ....
return res;
}

On WIN32, __int64 _lseeki64() returns a 64 bits integer which doesn't fit in a 'long' (which is only 32bits). I'm not sure how this should be resolved thought but this will likely cause trouble when working with large file.

Baptiste.
_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev

Reply via email to