diff options
| author | Eli Zaretskii | 2026-04-14 17:48:59 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2026-04-14 17:48:59 +0300 |
| commit | dcbfa53e4ba155c4c50cc045466d7eeeff738281 (patch) | |
| tree | 76266d1572ce97ff606c599f1aa3853224bcd5f3 /src | |
| parent | be18635ef09dfef50e1ae6811d1b8c5e71008165 (diff) | |
| download | emacs-dcbfa53e4ba155c4c50cc045466d7eeeff738281.tar.gz emacs-dcbfa53e4ba155c4c50cc045466d7eeeff738281.zip | |
; * src/conf_post.h: Another tweak of conditionals for MinGW64.
Diffstat (limited to 'src')
| -rw-r--r-- | src/conf_post.h | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/src/conf_post.h b/src/conf_post.h index a3fcb1f82c5..5b7548f20fa 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -389,10 +389,11 @@ extern int emacs_setenv_TZ (char const *); | |||
| 389 | #endif /* MSDOS */ | 389 | #endif /* MSDOS */ |
| 390 | 390 | ||
| 391 | #if defined WINDOWSNT && !(defined OMIT_CONSOLESAFE && OMIT_CONSOLESAFE == 1) | 391 | #if defined WINDOWSNT && !(defined OMIT_CONSOLESAFE && OMIT_CONSOLESAFE == 1) |
| 392 | # if !defined _UCRT | 392 | # if !defined _UCRT || !(HAVE_DECL_GETDELIM && HAVE_DECL_GETLINE) |
| 393 | # include <stdarg.h> | ||
| 394 | # include <stdio.h> | 393 | # include <stdio.h> |
| 395 | # include <stddef.h> | 394 | # include <stddef.h> |
| 395 | # if !defined _UCRT | ||
| 396 | # include <stdarg.h> | ||
| 396 | 397 | ||
| 397 | /* Workarounds for MSVCRT bugs. | 398 | /* Workarounds for MSVCRT bugs. |
| 398 | 399 | ||
| @@ -418,20 +419,13 @@ extern int gl_consolesafe_vfprintf (FILE *restrict fp, | |||
| 418 | extern int gl_consolesafe_vprintf (const char *restrict format, va_list args) | 419 | extern int gl_consolesafe_vprintf (const char *restrict format, va_list args) |
| 419 | ATTRIBUTE_FORMAT_PRINTF (1, 0) | 420 | ATTRIBUTE_FORMAT_PRINTF (1, 0) |
| 420 | ARG_NONNULL ((1)); | 421 | ARG_NONNULL ((1)); |
| 421 | # define fwrite gl_consolesafe_fwrite | 422 | # define fwrite gl_consolesafe_fwrite |
| 422 | # define fprintf gl_consolesafe_fprintf | 423 | # define fprintf gl_consolesafe_fprintf |
| 423 | # define printf gl_consolesafe_printf | 424 | # define printf gl_consolesafe_printf |
| 424 | # define vfprintf gl_consolesafe_vfprintf | 425 | # define vfprintf gl_consolesafe_vfprintf |
| 425 | # define vprintf gl_consolesafe_vprintf | 426 | # define vprintf gl_consolesafe_vprintf |
| 426 | # endif /* !_UCRT */ | 427 | # endif /* !_UCRT */ |
| 427 | #endif /* WINDOWSNT */ | ||
| 428 | 428 | ||
| 429 | #ifdef WINDOWSNT | ||
| 430 | /* MinGW64 doesn't have getdelim, called by Gnulib's getline, but the | ||
| 431 | MS-Windows build omits stdio.h module, where getdelim is declared. */ | ||
| 432 | # if !(HAVE_DECL_GETDELIM && HAVE_DECL_GETLINE) | ||
| 433 | # include <stdio.h> | ||
| 434 | # include <stddef.h> | ||
| 435 | # if !HAVE_DECL_GETDELIM | 429 | # if !HAVE_DECL_GETDELIM |
| 436 | extern ssize_t getdelim (char **, size_t *, int, FILE *); | 430 | extern ssize_t getdelim (char **, size_t *, int, FILE *); |
| 437 | # endif | 431 | # endif |
| @@ -439,4 +433,4 @@ extern ssize_t getdelim (char **, size_t *, int, FILE *); | |||
| 439 | extern ssize_t getline (char **, size_t *, FILE *); | 433 | extern ssize_t getline (char **, size_t *, FILE *); |
| 440 | # endif | 434 | # endif |
| 441 | # endif | 435 | # endif |
| 442 | #endif | 436 | #endif /* WINDOWSNT */ |