summaryrefslogtreecommitdiff
path: root/src/string_type.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-05-17 23:31:49 +0200
committerMichael Lutz <michi@icosahedron.de>2020-05-21 20:02:34 +0200
commit808c8198d5ab61c457d0351ff7971b75ee17c10a (patch)
tree70459dfbd4c69dd9e82282eed2c6fe68383774f3 /src/string_type.h
parent43cd892e0c2c012355d7eb6d47cfa4ad4b7e68eb (diff)
downloadopenttd-808c8198d5ab61c457d0351ff7971b75ee17c10a.tar.xz
Codechange: Consistently use WChar when passing characters around, and also define it as char32_t.
Diffstat (limited to 'src/string_type.h')
-rw-r--r--src/string_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_type.h b/src/string_type.h
index ced1ab1de..623d74661 100644
--- a/src/string_type.h
+++ b/src/string_type.h
@@ -32,7 +32,7 @@ enum CharSetFilter {
};
/** Type for wide characters, i.e. non-UTF8 encoded unicode characters. */
-typedef uint32 WChar;
+typedef char32_t WChar;
/* The following are directional formatting codes used to get the LTR and RTL strings right:
* http://www.unicode.org/unicode/reports/tr9/#Directional_Formatting_Codes */