Files
ports/lang/gpc/patches/patch-libcpp_include_cpp-id-data_h
T
naddy 512b1fa46d lang/gpc: build fixes for llvm22
This hack in the GCC 4.2.4 code base

#define U (const unsigned char *)  /* Intended use: U"string" */

clashes with the more recent syntax for string literals of type
char32_t[].  Pick an unobtrusive fix from GCC 4.4 and replace U
with UC.
2026-06-11 20:34:24 +00:00

16 lines
536 B
Plaintext

cpp-id-data.h (UC): Was U, conflicts with U...
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=b6baa67d7947f
Index: libcpp/include/cpp-id-data.h
--- libcpp/include/cpp-id-data.h.orig
+++ libcpp/include/cpp-id-data.h
@@ -22,7 +22,7 @@ Foundation, 51 Franklin Street, Fifth Floor, Boston, M
typedef unsigned char uchar;
#endif
-#define U (const unsigned char *) /* Intended use: U"string" */
+#define UC (const unsigned char *) /* Intended use: UC"string" */
/* Chained list of answers to an assertion. */
struct answer GTY(())