From efc2cf23a849f7be1d65c4cdd7767f88917c46a7 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 21 Feb 2007 21:55:16 +0000 Subject: Progress toward clean SDCC compilation git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@18 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/sys/types.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'nuttx/include/sys/types.h') diff --git a/nuttx/include/sys/types.h b/nuttx/include/sys/types.h index 37b206ee1..45971e4fd 100644 --- a/nuttx/include/sys/types.h +++ b/nuttx/include/sys/types.h @@ -112,6 +112,7 @@ * Type Declarations ************************************************************/ +#ifndef __ASSEMBLY__ #ifndef CONFIG_HAVE_DOUBLE typedef float double_t; #else @@ -120,15 +121,21 @@ typedef double double_t; /* Misc. scalar types */ -typedef uint32 mode_t; +typedef unsigned int mode_t; +#ifdef CONFIG_SMALL_MEMORY +typedef uint16 size_t; +typedef sint16 ssize_t; +typedef sint16 off_t; +#else typedef uint32 size_t; typedef sint32 ssize_t; -//typedef sint32 time_t; typedef sint32 off_t; -typedef sint32 uid_t; -typedef sint32 gid_t; -typedef uint32 dev_t; -typedef uint32 ino_t; +#endif +//typedef sint32 time_t; +typedef sint16 uid_t; +typedef sint16 gid_t; +typedef uint16 dev_t; +typedef uint16 ino_t; typedef unsigned int sig_atomic_t; typedef int pid_t; typedef int STATUS; @@ -143,6 +150,7 @@ struct sched_param { int sched_priority; }; +#endif /************************************************************ * Global Function Prototypes -- cgit v1.2.3