diff options
author | Ross Lagerwall <rosslagerwall@gmail.com> | 2011-09-19 06:30:43 (GMT) |
---|---|---|
committer | Ross Lagerwall <rosslagerwall@gmail.com> | 2011-09-19 06:30:43 (GMT) |
commit | b1e5d595afd15d3b84600883a5b60d1fbc6882e6 (patch) | |
tree | 319509032d4d7cf9b90e3d6bfde2f46127b745da /Modules/posixmodule.c | |
parent | ddd2d70cc63772f6039ffa7e35a04995eb96cf8b (diff) | |
download | cpython-b1e5d595afd15d3b84600883a5b60d1fbc6882e6.zip cpython-b1e5d595afd15d3b84600883a5b60d1fbc6882e6.tar.gz cpython-b1e5d595afd15d3b84600883a5b60d1fbc6882e6.tar.bz2 |
Issue #12517: Silence warning on windows buildbots (from 7fd80c61ddaa).
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 355e01f..2fc509d 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -375,6 +375,8 @@ static int win32_can_symlink = 0; #endif #endif +/* A helper used by a number of POSIX-only functions */ +#ifndef MS_WINDOWS static int _parse_off_t(PyObject* arg, void* addr) { @@ -387,6 +389,7 @@ _parse_off_t(PyObject* arg, void* addr) return 0; return 1; } +#endif #if defined _MSC_VER && _MSC_VER >= 1400 /* Microsoft CRT in VS2005 and higher will verify that a filehandle is |