diff options
| author | guo <[email protected]> | 2021-12-02 09:58:33 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-02 09:58:33 +0800 |
| commit | 1d4594c6fcad494ef256c9bbd8aa7d64132a0995 (patch) | |
| tree | 96465d7a6431653b5e11d4c4a2dae3c264841ffe /components/drivers | |
| parent | 838d1087a05c1565aa8833d6a9dab7d3191e646e (diff) | |
| parent | 7b1f65a690c8f28d172e640989643df12597fa7a (diff) | |
Merge pull request #5317 from mysterywolf/PSE
[PSE分支] 替换宏定义 将posix单独划分为一个Kconfig目录
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/src/pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/src/pipe.c b/components/drivers/src/pipe.c index 1d803e9a4c..89b544bc4e 100644 --- a/components/drivers/src/pipe.c +++ b/components/drivers/src/pipe.c @@ -439,7 +439,7 @@ const static struct rt_device_ops pipe_ops = rt_pipe_write, rt_pipe_control, }; -#endif +#endif /* RT_USING_DEVICE_OPS */ rt_pipe_t *rt_pipe_create(const char *name, int bufsz) { @@ -481,7 +481,7 @@ rt_pipe_t *rt_pipe_create(const char *name, int bufsz) } #ifdef RT_USING_POSIX_DEVIO dev->fops = (void*)&pipe_fops; -#endif +#endif /* RT_USING_POSIX_DEVIO */ return pipe; } |
