瀏覽代碼

[components / drivers]fixed re-include of audio

David Lin 4 年之前
父節點
當前提交
db71258051
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      components/drivers/audio/audio_pipe.h

+ 2 - 3
components/drivers/audio/audio_pipe.h

@@ -12,7 +12,6 @@
 /**
  * Pipe Device
  */
-#include <rtthread.h>
 #include <rtdevice.h>
 
 #ifndef RT_PIPE_BUFSZ
@@ -71,6 +70,6 @@ rt_err_t rt_audio_pipe_detach(struct rt_audio_pipe *pipe);
 #ifdef RT_USING_HEAP
 rt_err_t rt_audio_pipe_create(const char *name, rt_int32_t flag, rt_size_t size);
 void rt_audio_pipe_destroy(struct rt_audio_pipe *pipe);
-#endif
-#endif
+#endif /* RT_USING_HEAP */
 
+#endif /* __AUDIO_PIPE_H__ */