Afficher un message
Vieux 27/05/2008, 20h08   #3
vippstar@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: preprocessing statements

On May 27, 8:56 pm, "Bill Cunningham" <nos...@nspam.com> wrote:
> I have been thinking about hiding headers from my compiler's
> preprocessor and allowing others to be shown. I want to use the most used
> and add others is necessary. Would this be how it is properly done. I want
> to ask ahead of time because what I do might work but it might not be the
> "correct" or standard way.

That doesn't make sense, please re-attempt to explain your intentions,
without being so ambiguous/vague.
> #include <stdio.h>
> #include <stdlib.h>
> #ifdef LINUX
> #include <unistd.h>
> #include <sys/types>
> #include <sys/stats.h>
> #include <fctnl.h>

Just what is wrong with you Bill?
Haven't you understood yet such thing is not topical for comp.lang.c?
> #endif
>
> Is the #endif needed at the end of this case ?

What's so hard about removing it and trying to compile? Or reading
about #ifdef in your book?
Isn't it the obvious thing to do before asking a group of people about
it?

  Réponse avec citation
 
Page generated in 0,04955 seconds with 9 queries