Skip to content

Commit a4f891b

Browse files
committed
Update ICU C++ API symbols
Recent ICU versions have added U_SHOW_CPLUSPLUS_HEADER_API, and we need to set this to zero as well to hide the ICU C++ APIs from pg_locale.h Per discussion, we want cpluspluscheck to work cleanly in backbranches, so backpatch both this and its predecessor commit ed26c4e to all supported versions. Reported-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/1115793.1754414782%40sss.pgh.pa.us Backpatch-through: 13
1 parent a00eb37 commit a4f891b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/include/utils/pg_locale.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
#include <xlocale.h>
1717
#endif
1818
#ifdef USE_ICU
19+
/* only include the C APIs, to avoid errors in cpluspluscheck */
20+
#undef U_SHOW_CPLUSPLUS_API
21+
#define U_SHOW_CPLUSPLUS_API 0
22+
#undef U_SHOW_CPLUSPLUS_HEADER_API
23+
#define U_SHOW_CPLUSPLUS_HEADER_API 0
1924
#include <unicode/ucol.h>
2025
#endif
2126

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy