How to stop #including redundant headers?

来源:互联网 发布:中国大数据时代好处 编辑:程序博客网 时间:2024/05/17 23:54

I was faced with a problem when debugging the ETH_light code. The compiler kept reporting redeclaration error about the waitstatus.h file.

To solve this issue, the endian.h file created privately was renamed to my_endian.h.

However, more is related to header file inclusions. I noticed two sources with explanations:

http://stackoverflow.com/questions/11546964/how-can-i-stop-including-redundant-headers-when-i-use-header-files-like-these

http://forums.ni.com/t5/LabWindows-CVI/how-to-turn-off-the-quot-redeclaration-quot-error/td-p/150781

0 0
原创粉丝点击