Mercurial > hg > th-libs
comparison th_types.h @ 456:1bf886fa9db5
Merged.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Jan 2018 22:57:47 +0200 |
parents | 347bfd3e017e c7f457ac013d |
children | 85fa3d333556 |
comparison
equal
deleted
inserted
replaced
454:347bfd3e017e | 456:1bf886fa9db5 |
---|---|
172 typedef unsigned long int uintmax_t; | 172 typedef unsigned long int uintmax_t; |
173 #endif | 173 #endif |
174 #endif | 174 #endif |
175 | 175 |
176 | 176 |
177 /* This is the character type used in all string-related routines of | |
178 * th_libs. Currently it is set to be equivalent of basetype "char", | |
179 * but under some platforms it may be necessary to use | |
180 * "unsigned char" instead. | |
181 * | |
182 * Also in future this type may be changed to hold 32-bit UNICODE | |
183 */ | |
184 typedef char char_t; | |
185 | |
186 | |
187 /* Define a boolean type, if needed | 177 /* Define a boolean type, if needed |
188 */ | 178 */ |
189 #ifndef HAVE_BOOL | 179 #ifndef HAVE_BOOL |
190 # if !defined(false) && !defined(true) && !defined(bool) | 180 # if !defined(false) && !defined(true) && !defined(bool) |
191 typedef enum { false = 0, true = 1 } bool; | 181 typedef enum { false = 0, true = 1 } bool; |