File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 62
62
#define RT_USING_LIBC_ISO_ONLY (1)
63
63
#else
64
64
#define RT_USING_LIBC_ISO_ONLY (0)
65
- #endif /* !defined(RT_USING_LIBC_ISO_ONLY) && !defined(RT_VER_NUM) */
65
+ #endif /* !defined(RT_USING_LIBC_ISO_ONLY) && !defined(RT_VER_NUM) */
66
66
#include <stdint.h>
67
67
#include <stddef.h>
68
68
#include <stdarg.h>
69
69
#if !RT_USING_LIBC_ISO_ONLY
70
70
#include <sys/types.h>
71
+ #if defined(RT_USING_SIGNALS ) || defined(RT_USING_SMART )
72
+ #include <sys/signal.h>
73
+ #endif /* defined(RT_USING_SIGNALS) || defined(RT_USING_SMART) */
71
74
#endif /* !RT_USING_LIBC_ISO_ONLY */
72
75
#endif /* RT_USING_LIBC */
73
76
@@ -639,19 +642,10 @@ typedef struct rt_timer *rt_timer_t;
639
642
/**@{*/
640
643
641
644
#ifdef RT_USING_SIGNALS
642
- #include <sys/signal.h>
645
+ #define RT_SIG_MAX 32
643
646
typedef unsigned long rt_sigset_t ;
644
647
typedef siginfo_t rt_siginfo_t ;
645
648
typedef void (* rt_sighandler_t )(int signo );
646
-
647
- #define RT_SIG_MAX 32
648
-
649
- #else
650
-
651
- #ifdef RT_USING_SMART
652
- #include <sys/signal.h>
653
- #endif
654
-
655
649
#endif /* RT_USING_SIGNALS */
656
650
/**@}*/
657
651
You can’t perform that action at this time.
0 commit comments