使用#if __has_include(<xxxx.h>)
例如
#if __has_include(<linux/dma-buf.h>)
MODULE_IMPORT_NS(DMA_BUF);
#endif
使用#if __has_include(<xxxx.h>)
例如
#if __has_include(<linux/dma-buf.h>)
MODULE_IMPORT_NS(DMA_BUF);
#endif

被折叠的 条评论
为什么被折叠?