mirror of
https://github.com/curl/curl.git
synced 2026-08-26 23:14:57 +03:00
tool: move tool_ftruncate64 to tool_util.c
... and the prototype to tool_setup.h, to make them both available more
widely and accurately.
Follow-up to 00bef95946
Fixes #13458
Closes #13459
This commit is contained in:
parent
03cf1c7b8c
commit
9fc4b2c78c
4 changed files with 42 additions and 41 deletions
|
|
@ -74,4 +74,17 @@ extern bool tool_isVistaOrGreater;
|
|||
extern bool tool_term_has_bold;
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) && !defined(HAVE_FTRUNCATE)
|
||||
|
||||
int tool_ftruncate64(int fd, curl_off_t where);
|
||||
|
||||
#undef ftruncate
|
||||
#define ftruncate(fd,where) tool_ftruncate64(fd,where)
|
||||
|
||||
#define HAVE_FTRUNCATE 1
|
||||
#define USE_TOOL_FTRUNCATE 1
|
||||
|
||||
#endif /* _WIN32 && ! HAVE_FTRUNCATE */
|
||||
|
||||
|
||||
#endif /* HEADER_CURL_TOOL_SETUP_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue