mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
512b1fa46d
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.
16 lines
536 B
Plaintext
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(())
|