system.h: drop compilers lacking 64-bit integer type (Windows/MS-DOS)

- DJGPP 1.x (including `__GO32__`) (MS-DOS)
  DJGPP 2.x support remains unchanged.
- Salford C (Windows)
- Turbo C (Windows 16-bit)
- Borland C++ < 5.2 (Windows 16-bit?)
- Pelles C < 2.8 (Windows)

These targets mapped `curl_off_t` to `long`. On Windows and MS-DOS
`long` is always 32-bit.

curl requires C compilers supporting 64-bit `curl_off_t` type since
835682661c #10597 (v8.0.0).

Also: drop remaining `__GO32__` and Salford C guards.

Closes #15957
This commit is contained in:
Viktor Szakats 2025-01-09 15:42:34 +01:00
parent 95658f9ca3
commit ccf43ce91d
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
4 changed files with 18 additions and 60 deletions

View file

@ -550,8 +550,7 @@ static SANITIZEcode rename_if_reserved_dos(char **const sanitized,
return (*sanitized ? SANITIZE_ERR_OK : SANITIZE_ERR_OUT_OF_MEMORY);
}
#if defined(MSDOS) && (defined(__DJGPP__) || defined(__GO32__))
#ifdef __DJGPP__
/*
* Disable program default argument globbing. We do it on our own.
*/
@ -560,8 +559,7 @@ char **__crt0_glob_function(char *arg)
(void)arg;
return (char **)0;
}
#endif /* MSDOS && (__DJGPP__ || __GO32__) */
#endif
#ifdef _WIN32

View file

@ -41,11 +41,9 @@ typedef enum {
SANITIZEcode sanitize_file_name(char **const sanitized, const char *file_name,
int flags);
#if defined(MSDOS) && (defined(__DJGPP__) || defined(__GO32__))
#ifdef __DJGPP__
char **__crt0_glob_function(char *arg);
#endif /* MSDOS && (__DJGPP__ || __GO32__) */
#endif
#ifdef _WIN32

View file

@ -151,7 +151,7 @@ static CURLcode main_init(struct GlobalConfig *config)
{
CURLcode result = CURLE_OK;
#if defined(__DJGPP__) || defined(__GO32__)
#ifdef __DJGPP__
/* stop stat() wasting time */
_djstat_flags |= _STAT_INODE | _STAT_EXEC_MAGIC | _STAT_DIRSIZE;
#endif