4 * Copyright (c) Tuomo Valkonen 1999-2002.
6 * You may distribute and modify this library under the terms of either
7 * the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
13 #include <sys/types.h>
24 #define NULL ((void*)0)
27 #ifndef LIBTU_TYPEDEF_UXXX
29 /* All systems seem to define these whichever way they want to
30 * despite -D_*_SOURCE etc. so there is no easy way to know whether
31 * they can be typedef'd or not. Unless you want to go through using
32 * autoconf or similar methods. ==> Just stick to #define. :-(
36 #define uchar unsigned char
40 #define ushort unsigned short
44 #define uint unsigned int
48 #define ulong unsigned long
51 #else /* LIBTU_TYPEDEF_UXXX */
54 typedef unsigned char uchar
;
58 typedef unsigned short ushort
;
62 typedef unsigned int uint
;
66 typedef unsigned long ulong
;
69 #endif /* LIBTU_TYPEDEF_UXXX */
72 #ifndef LIBTU_TYPEDEF_BOOL
78 #else /* LIBTU_TYPEDEF_BOOL */
84 #endif /* LIBTU_TYPEDEF_BOOL */
86 #endif /* LIBTU_TYPES_H */