2 Copyright (C) Slava Astashonok <sla@0n.ru>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License.
7 $Id: my_inttypes.h,v 1.1.2.1 2004/08/13 20:41:19 sla Exp $
10 #ifndef _MY_INTTYPES_H_
11 #define _MY_INTTYPES_H_
15 #ifdef HAVE_INTTYPES_H
19 typedef unsigned char uint8_t;
20 typedef signed char int8_t;
22 typedef unsigned short uint16_t;
23 typedef short int16_t;
26 typedef unsigned int uint32_t;
30 typedef unsigned long uint32_t;
33 #error "Can't find any 32 bit type"
38 typedef unsigned long uint64_t;
41 #if SIZEOF_LONG_LONG == 8
42 typedef unsigned long long uint64_t;
43 typedef long long int64_t;
45 #error "Can't find any 64 bit type"
49 #endif /* HAVE_INTTYPES_H */
51 #endif /* _MY_INTTYPES_H_ */