URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [rtems/] [machine/] [_types.h] - Rev 859
Go to most recent revision | Compare with Previous | Blame | View Log
/* * $Id: _types.h 207 2010-07-19 17:43:24Z jeremybennett $ */ #ifndef _MACHINE__TYPES_H #define _MACHINE__TYPES_H /* * GCC wants type symmetry between size_t and ssize_t. * It supplies __SIZE_TYPE__, doesn't supply a corresponding __SSIZE_TYPE__, * so we have to guess on which type GCC wants ssize_t to be. * FIXME: GCC > 4.3.x supplies internal defines __SIZEOF_SIZE_T__ etc. which * could be applied here. */ #if defined(__i386__) || defined(__m32r__) || defined(__h8300__) || defined(__arm__) || defined(__bfin__) || defined(__m68k__) #if defined(__H8300__) typedef signed int _ssize_t; #else typedef long signed int _ssize_t; #endif #define __ssize_t_defined 1 #elif defined(__AVR__) || defined(__lm32__) || defined(__m32c__) || defined(__mips__) || defined(__PPC__) || defined(__sparc__) || defined(__sh__) typedef signed int _ssize_t; #define __ssize_t_defined 1 #else # error unsupported target #endif #include <machine/_default_types.h> typedef __int32_t blksize_t; typedef __int32_t blkcnt_t; #endif
Go to most recent revision | Compare with Previous | Blame | View Log