diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-01 18:41:10 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-01 18:41:10 +0100 |
commit | 017eb132a6f47b4af3d8d1592e56c0272f311c91 (patch) | |
tree | 1103a77e4720ff4c7587378df1496f97c243d07e | |
parent | 7de928d83948079e397d91890327b77914069460 (diff) |
libddekit: Also let translators not define using_std
-rw-r--r-- | libddekit/printf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libddekit/printf.c b/libddekit/printf.c index 5c3cd7426..5751243c9 100644 --- a/libddekit/printf.c +++ b/libddekit/printf.c @@ -15,6 +15,7 @@ #include "ddekit/printf.h" extern boolean_t using_std; +#pragma weak using_std static FILE *output; /** @@ -74,7 +75,7 @@ int ddekit_vprintf(const char *fmt, va_list va) int log_init (void) { - if (using_std) { + if (&using_std && using_std) { output = stderr; } else { |