Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: compiling gcc under Ultrix Message-ID: <14465@smoke.brl.mil> Date: 15 Nov 90 18:31:22 GMT References: <1990Nov14.164414.16983@aplcen.apl.jhu.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 12 In article <1990Nov14.164414.16983@aplcen.apl.jhu.edu> kjh@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