mirror of
https://github.com/curl/curl.git
synced 2026-07-28 09:13:07 +03:00
tidy-up: misc
- lib1531: fix to use `curl_off_t`. - src/tool_doswin: merge `_WIN32` guards. - src/tool_doswin: limit `S_ISCHR()` to MS-DOS. - src: dedupe `CURL_O_BINARY` macro into `tool_setup.h`. - CMake/CurlTests.c: cleanup/formatting `HAVE_FILE_OFFSET_BITS` test. - examples/httpput-postfields: delete unused include. - spelling: MultiSSL. - whitespace. Ref: #15652 Closes #15799
This commit is contained in:
parent
415741ef94
commit
7a70b46481
11 changed files with 29 additions and 39 deletions
|
|
@ -147,19 +147,17 @@ int main(void) { return 0; }
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_FILE_OFFSET_BITS
|
||||
#ifdef _FILE_OFFSET_BITS
|
||||
#undef _FILE_OFFSET_BITS
|
||||
#endif
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
#include <sys/types.h>
|
||||
/* Check that off_t can represent 2**63 - 1 correctly.
|
||||
We cannot simply define LARGE_OFF_T to be 9223372036854775807,
|
||||
since some C++ compilers masquerading as C compilers
|
||||
incorrectly reject 9223372036854775807. */
|
||||
/* Check that off_t can represent 2**63 - 1 correctly.
|
||||
We cannot simply define LARGE_OFF_T to be 9223372036854775807,
|
||||
since some C++ compilers masquerading as C compilers
|
||||
incorrectly reject 9223372036854775807. */
|
||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||
&& LARGE_OFF_T % 2147483647 == 1)
|
||||
? 1 : -1];
|
||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||
&& LARGE_OFF_T % 2147483647 == 1)
|
||||
? 1 : -1];
|
||||
int main(void) { return 0; }
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue