1 #ifndef _SIZE_T_H_ 2 #define _SIZE_T_H_ 3 4 /* 5 * XXX serious hack that doesn't really solve the problem. 6 * As of right now, some versions of the toolchain expect size_t to 7 * be unsigned long (newer ones than 2.95.2 and beos), and the older 8 * ones need it to be unsigned int. It's an actual failure when 9 * operator new is declared. This will have to be resolved in the future. 10 */ 11 12 #ifdef __BEOS__ 13 typedef unsigned long size_t; 14 typedef signed long ssize_t; 15 #else 16 typedef unsigned int size_t; 17 typedef signed int ssize_t; 18 #endif 19 20 #endif /* _SIZE_T_H_ */ 21