[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64006] *printf() defines break C++ builds (specifically Qt)
From: |
Bruno Haible |
Subject: |
[bug #64006] *printf() defines break C++ builds (specifically Qt) |
Date: |
Thu, 28 Nov 2024 15:00:25 -0500 (EST) |
Update of bug #64006 (group gettext):
Status: Confirmed => Fixed
Assigned to: None => haible
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #10:
The commit
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=e4a1c66c1ddb05fa67f00678bda9ec24af5e4de6
provides a fix, in the following sense:
* In C++ mode, where possible, overriding the *printf functions is now done
through inline functions instead of through C macros.
* The "where possible" restriction applies to mingw and MSVC, which define
some *printf functions as inline functions in a header file. Such inline
functions can ONLY be overridden through C macros. In particular, this affects
'asprintf' on mingw.
* In order to nevertheless avoid a conflict with Qt, you can define a macro
_INTL_NO_DEFINE_MACRO_ASPRINTF, that will inhibit that macro definition.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64006>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #64006] *printf() defines break C++ builds (specifically Qt),
Bruno Haible <=