This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for implicit decl warning on solaris2 (+ #include in a macro?)
- To: neil at daikokuya dot demon dot co dot uk
- Subject: Re: Patch for implicit decl warning on solaris2 (+ #include in a macro?)
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Mon, 3 Sep 2001 01:00:18 -0400 (EDT)
- Cc: gcc-patches at gcc dot gnu dot org
> From: Neil Booth <neil@daikokuya.demon.co.uk>
>
> Kaveh R. Ghazi wrote:-
>
> > The TRANSFER_FROM_TRAMPOLINE macro makes use of `mprotect' so we need
> > to include sys/mman.h. I'd have preferred if there were a way to
> > include sys/mman.h directly within TRANSFER_FROM_TRAMPOLINE, but (I
> > think) you can 't use cpp directives within a macro. (?) Is there
> > something I can do to `include' similar to the new pragma operator?
>
> No, there is not, and you can't have any kind of directives in a macro
> (# only starts a directive as the first token of a line that does not
> come from a macro expansion).
> Neil.
Thanks, that's what I thought. So my original patch stands.
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions