aboutsummaryrefslogtreecommitdiff
path: root/gdb/charset.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-02-03 12:04:36 -0700
committerTom Tromey <tromey@adacore.com>2022-03-07 07:52:59 -0700
commitee3d46491537e343c276a7fc455dd94812fd3f72 (patch)
treee3be26c2f6bc0b3721bc202c656a6028cd80d14e /gdb/charset.h
parentc8b76e1ec346de509dbcc2c6dfc4519c572f7322 (diff)
downloadgdb-ee3d46491537e343c276a7fc455dd94812fd3f72.zip
gdb-ee3d46491537e343c276a7fc455dd94812fd3f72.tar.gz
gdb-ee3d46491537e343c276a7fc455dd94812fd3f72.tar.bz2
Define HOST_UTF32 in charset.h
rust-parse.c has a #define for the host-specific UTF-32 charset name. A later patch needs the same thing, so this patch moves the definition to charset.h for easier reuse.
Diffstat (limited to 'gdb/charset.h')
-rw-r--r--gdb/charset.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/charset.h b/gdb/charset.h
index 7a7041f..2daa9a25 100644
--- a/gdb/charset.h
+++ b/gdb/charset.h
@@ -159,4 +159,10 @@ class wchar_iterator
character. */
char host_letter_to_control_character (char c);
+#if WORDS_BIGENDIAN
+#define HOST_UTF32 "UTF-32BE"
+#else
+#define HOST_UTF32 "UTF-32LE"
+#endif
+
#endif /* CHARSET_H */