aboutsummaryrefslogtreecommitdiff
path: root/src/libutf/utfdef.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutf/utfdef.h')
-rw-r--r--src/libutf/utfdef.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libutf/utfdef.h b/src/libutf/utfdef.h
new file mode 100644
index 00000000..4b58ae87
--- /dev/null
+++ b/src/libutf/utfdef.h
@@ -0,0 +1,14 @@
+#define uchar _utfuchar
+#define ushort _utfushort
+#define uint _utfuint
+#define ulong _utfulong
+#define vlong _utfvlong
+#define uvlong _utfuvlong
+
+typedef unsigned char uchar;
+typedef unsigned short ushort;
+typedef unsigned int uint;
+typedef unsigned long ulong;
+
+#define nelem(x) (sizeof(x)/sizeof((x)[0]))
+#define nil ((void*)0)