mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
Eliminating SDCC compilation errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@17 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -50,11 +50,19 @@
|
||||
# define weak_function __attribute__ ((weak))
|
||||
# define weak_const_function __attribute__ ((weak, __const__))
|
||||
# define noreturn_function __attribute__ ((noreturn))
|
||||
# define reentrant_function
|
||||
#elif defined(__SDCC__)
|
||||
# define weak_alias(name, aliasname)
|
||||
# define weak_function
|
||||
# define weak_const_function
|
||||
# define noreturn_function
|
||||
# define reentrant_function __reentrant
|
||||
#else
|
||||
# define weak_alias(name, aliasname)
|
||||
# define weak_function
|
||||
# define weak_const_function
|
||||
# define noreturn_function
|
||||
# define reentrant_function
|
||||
#endif
|
||||
|
||||
/************************************************************
|
||||
|
||||
+4
-6
@@ -118,14 +118,12 @@ typedef struct siginfo
|
||||
|
||||
/* The following structure defines the action to take for given signal */
|
||||
|
||||
typedef void saHandType(int signo);
|
||||
typedef void saVxHandType(int signo, siginfo_t *info, void *context);
|
||||
struct sigaction
|
||||
{
|
||||
union
|
||||
{
|
||||
saHandType *_sa_handler;
|
||||
saVxHandType *_sa_sigaction;
|
||||
void (*_sa_handler)(int);
|
||||
void (*_sa_sigaction)(int, siginfo_t *, void *);
|
||||
} sa_u;
|
||||
sigset_t sa_mask;
|
||||
int sa_flags;
|
||||
@@ -166,10 +164,10 @@ EXTERN int sigtimedwait(const sigset_t *set,
|
||||
struct siginfo *value,
|
||||
const struct timespec *timeout);
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
EXTERN int sigqueue(int tid, int signo,
|
||||
EXTERN int sigqueue(int pid, int signo,
|
||||
const union sigval value);
|
||||
#else
|
||||
EXTERN int sigqueue(int tid, int signo, void *sival_ptr);
|
||||
EXTERN int sigqueue(int pid, int signo, void *sival_ptr);
|
||||
#endif
|
||||
|
||||
#undef EXTERN
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <arch/types.h>
|
||||
#include <nuttx/compiler.h>
|
||||
|
||||
/************************************************************
|
||||
* Definitions
|
||||
|
||||
Reference in New Issue
Block a user