Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2002 10:17:18 -0600 (MDT)
From:      "M. Warner Losh" <imp@village.org>
To:        Alexander@Leidinger.net
Cc:        bde@zeta.org.au, obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/share/mk bsd.sys.mk
Message-ID:  <20020411.101718.69020559.imp@village.org>
In-Reply-To: <200204111556.g3BFuaLh001628@Magelan.Leidinger.net>
References:  <20020411.002144.38305372.imp@village.org> <200204111556.g3BFuaLh001628@Magelan.Leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200204111556.g3BFuaLh001628@Magelan.Leidinger.net>
            Alexander Leidinger <Alexander@Leidinger.net> writes:
: On 11 Apr, M. Warner Losh wrote:
: 
: > : > You did not respond to creating the non-standard /usr/include/scm.h as a
: > : > place to put all these various compatibility macros.
: > : 
: > : I like it better than <sys/cdefs.h> for FreeBSD ids, but think it would
: > : just increase unportability.  You would still have to edit files to add it,
: > : and it is not so easy to kill using Makefile hacks like -D__RCSID=__IGNORE
: > : where __IGNORE() expands to nothing.
: > 
: > CFLAGS += -include scm.h
: > 
: > might be a way to deal (at least for gnu compilers) :-)
: 
: I've seen the smiley, but please: don't do this, icc has no equivalent
: to to -include.

There's always cat :-)

(oh wait, I guess I need two smiley faces for that suggestions :-)

A big part of the problem is that there's no way to do '#define
foo(x)' on the command line (correct me if I'm wrong).  You can do
'#define foo' on the command line, but that leaves calls of foo
expanding to (x).  You'd have to have __IGNORE (to go back to bde's
example) defined in cdefs.h.  And if you are doing that, then why not
have __RCSID defined too.  It's not like it pollutes the application
name space :-).

Warner

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020411.101718.69020559.imp>