mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-18 18:39:11 +08:00
[rtdef] adjust RT_USING_SIGNALS defination
This commit is contained in:
parent
a6e9c386ff
commit
746f527fac
@ -68,6 +68,9 @@
|
||||
#include <stdarg.h>
|
||||
#if !RT_USING_LIBC_ISO_ONLY
|
||||
#include <sys/types.h>
|
||||
#if defined(RT_USING_SIGNALS) || defined(RT_USING_SMART)
|
||||
#include <sys/signal.h>
|
||||
#endif /* defined(RT_USING_SIGNALS) || defined(RT_USING_SMART) */
|
||||
#endif /* !RT_USING_LIBC_ISO_ONLY */
|
||||
#endif /* RT_USING_LIBC */
|
||||
|
||||
@ -639,19 +642,10 @@ typedef struct rt_timer *rt_timer_t;
|
||||
/**@{*/
|
||||
|
||||
#ifdef RT_USING_SIGNALS
|
||||
#include <sys/signal.h>
|
||||
#define RT_SIG_MAX 32
|
||||
typedef unsigned long rt_sigset_t;
|
||||
typedef siginfo_t rt_siginfo_t;
|
||||
typedef void (*rt_sighandler_t)(int signo);
|
||||
|
||||
#define RT_SIG_MAX 32
|
||||
|
||||
#else
|
||||
|
||||
#ifdef RT_USING_SMART
|
||||
#include <sys/signal.h>
|
||||
#endif
|
||||
|
||||
#endif /* RT_USING_SIGNALS */
|
||||
/**@}*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user