I know this is an old post, but today I ran into the same problem. Do not be too fast to assume that the header file provided by the compiler is faulty. This is rarely the case, especially for headers such as stdio.h, which have been around for a long time.
, Netbeans . , , Netbeans. , stdio.h, , . Netbeans , , , . , .
, , include, , , Netbeans, , . , , , , . Project Properties/Code Assistance/C Compiler/Preprocessor Definitions. Netbeans .