windows: drop redundant USE_WIN32_SMALL_FILES macro

In effect it meant `_WIN32 && !USE_WIN32_LARGE_FILES`.
Replace it with these macros.

Also:
- configure: delete tautological check for small file support.
- configure: delete stray `_MSC_VER` reference. autotools does not
  support MSVC.
- drop tautological checks for WinCE in `config-win32*.h` when setting
  `USE_WIN32_LARGE_FILES`.
- merge related PP logic.
- prefer `#ifdef`, fix whitespace.

Suggested-by: Marcel Raad
Report: https://github.com/curl/curl/pull/15952#issuecomment-2580092328

Closes #15968
This commit is contained in:
Viktor Szakats 2025-01-11 03:22:10 +01:00
parent b9840814ad
commit 7eb4ddb850
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
6 changed files with 14 additions and 46 deletions

View file

@ -497,7 +497,7 @@
* Small file (<2Gb) support using Win32 functions.
*/
#ifdef USE_WIN32_SMALL_FILES
#if defined(_WIN32) && !defined(USE_WIN32_LARGE_FILES)
# include <io.h>
# include <sys/types.h>
# include <sys/stat.h>