diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-21 21:55:16 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-21 21:55:16 +0000 |
commit | efc2cf23a849f7be1d65c4cdd7767f88917c46a7 (patch) | |
tree | fbe3518a364d6b9d811e00f7201e082d50ead7e3 /nuttx/include/sys/types.h | |
parent | 94e5b72f50f3096b83fe50c7b57324a08e318f29 (diff) | |
download | px4-nuttx-efc2cf23a849f7be1d65c4cdd7767f88917c46a7.tar.gz px4-nuttx-efc2cf23a849f7be1d65c4cdd7767f88917c46a7.tar.bz2 px4-nuttx-efc2cf23a849f7be1d65c4cdd7767f88917c46a7.zip |
Progress toward clean SDCC compilation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@18 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/sys/types.h')
-rw-r--r-- | nuttx/include/sys/types.h | 20 |
1 files changed, 14 insertions, 6 deletions
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 |