diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-27 14:25:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-27 14:25:47 +0100 |
commit | 770350f41ceadd17b3b982627ed67a74a87603f4 (patch) | |
tree | d49263489849e04c14c268dd56a04f1f9aeea235 /src/basic/missing.h | |
parent | fdb4ee00f022863ceee923b196f9c6dd536db9e2 (diff) | |
parent | c932fb71cc90461b88ecdffe47c071d001d78fb4 (diff) |
Merge pull request #2451 from zonque/pr-2162-rebased
utf8.[ch] et al: use char32_t and char16_t instead of int, int32_t, i…
Diffstat (limited to 'src/basic/missing.h')
-rw-r--r-- | src/basic/missing.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/basic/missing.h b/src/basic/missing.h index 6ed2133ed1..48ca04a8a1 100644 --- a/src/basic/missing.h +++ b/src/basic/missing.h @@ -36,6 +36,7 @@ #include <stdlib.h> #include <sys/resource.h> #include <sys/syscall.h> +#include <uchar.h> #include <unistd.h> #ifdef HAVE_AUDIT @@ -1159,4 +1160,13 @@ static inline key_serial_t request_key(const char *type, const char *description #ifndef IF_OPER_UP #define IF_OPER_UP 6 + +#ifndef HAVE_DECL_CHAR32_T +#define char32_t uint32_t +#endif + +#ifndef HAVE_DECL_CHAR16_T +#define char16_t uint16_t +#endif + #endif |