mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
Progress toward clean SDCC compilation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@18 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+14
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user