This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fixinc & limits.h


Jim Wilson wrote:
> 
> Bruce Korb wrote:
> > Can you send me a copy of the original /usr/include/limits.h
> > and the generated variant?  fixincludes won't create any files
> > that do not already exist in the source tree.
> 
> limits.h isn't created by fixincludes.  There is a Makefile rule for it.

Then you'll need to mess with the glimits.h/limitx.h/limity.h files
'cuz fixincludes doesn't touch that stuff.  Sorry.


> LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h ]
> # Build the version of limits.h that we will install.
> xlimits.h: glimits.h limitx.h limity.h
> 	if $(LIMITS_H_TEST) ; then \
> 	  cat $(srcdir)/limitx.h $(srcdir)/glimits.h \
>		$(srcdir)/limity.h > tmp-xlimits.h; \
> 	else \
> 	  cat $(srcdir)/glimits.h > tmp-xlimits.h; \
> 	fi
> 	mv tmp-xlimits.h xlimits.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]