www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/12/19/13:09:21

Date: Sun, 19 Dec 1993 18:35:08 +0100
From: terra AT diku DOT dk
To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP Mailing List), dj AT ctron DOT com (DJ Delorie)
Subject: Possible C preprocessor bug, djgpp only

Suppose, for some reason, that I have the file xxx.c containing
	#include <sys/../stdio.h>
and the file stdio.h containing
	foo
in a directory where I have no subdirectory called sys.


The command "gcc -E -I." should then include the system version of
stdio.h.  That what it does on a hpux system I checked.  Using
djgpp, however, I get the local file included.

The situation arose because I thought I was smart (HA!) to include
the sys/../ prefix in order to resolve a name clash when compiling
Emacs.

Morten Welinder
terra AT diku DOT dk

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019