compiling gcc under Ultrix

Doug Gwyn gwyn at smoke.brl.mil
Fri Nov 16 05:31:22 AEST 1990


In article <1990Nov14.164414.16983 at aplcen.apl.jhu.edu> kjh at visual1.jhuapl.edu (Kenneth J. Heeres) writes:
>  stddef.h line 12  illegal type combination
>   typedef unsigned long size_t;

size_t must have been previously typedefed.  Since there is no #iftypedef
available, it's hard to avoid such situations.  Usually, ANSI C implementors
associate a reserved preprocessing macro such as __SIZE_T_DEFINED with their
typedef for size_t, so that every header that might have to typedef it can:
	#ifndef __SIZE_T_DEFINED
	#define	__SIZE_T_DEFINED
	typedef unsigned long size_t;
	#endif



More information about the Comp.lang.c mailing list