Include files

Vijay Raghavan raghavan at umn-cs.CS.UMN.EDU
Sat Jan 28 08:08:52 AEST 1989


 Is the Sun style of surrounding the text of standard "include" files 
with a #ifndef-#endif pair really okay? Specifically, does the standard
condone/permit/require stdio.h (say) to have the following structure: 

#ifndef FILE 
 ...
#define FILE struct _iobuf
 ...
#endif !__FILE

 If it does, programs like the following should not compile: 

main() {
#include <stdio.h>
FILE *xx;
... 
}

proc1() {
#include <stdio.h>
FILE *yy;
...
}

Vijay Raghavan 



More information about the Comp.lang.c mailing list