Home GnuPG

w32:spawn: Fix thread-unfriendly internal check.

Description

w32:spawn: Fix thread-unfriendly internal check.

* src/gpgrt-int.h (_gpgrt_windows_feature): New.
* src/init.c (windows_specific_init): New.
(real_init) [HAVE_W32_SYSTEM]: Call windows_specific_init.
(_gpgrt_windows_feature): New.
* src/spawn-w32.c (check_windows_version): Remove.
(_gpgrt_process_spawn): Use _gpgrt_windows_feature.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Sep 23 2025, 4:08 AM
Parents
rE6ac5332e4f69: estream: Support the %b conversion specifier from C23
Branches
Unknown
Tags
Unknown

Event Timeline

werner added inline comments.
/src/gpgrt-int.h
869

If we ever make this a public API we should use dedicated enum values so that we don't accidentally change their values.