Hi,
// Add the following to the start of every include file, where CUSTOMER_H is
the .h file name
#ifndef _Customer_H
#define _Customer_H
blah
blah include file stuff
blah
// Add this at the end of the include file
#endif /* _CUSTOMER_H */
Rik
> -----Original Message-----
> From: Ezequiel Valenzuela [SMTP:[EMAIL PROTECTED]]
> Sent: 17 November 2000 15:58
> To: Palm Developer Forum
> Subject: Multiple file inclusions control
>
> Hi.
>
> I am getting an error in CodeWarrior when I try to include a file (say
> Pilot.h) twice, regarding its "include" control (see note 1). So, this
> "problem" is forcing me to handle this kind of symbols every time I try to
> include the file (see note 2).
>
> Some guy here thinks that this could be related to some sort of
> "precompiled
> headers" support built-in in CodeWarrior. We were unable to disable this
> feature (we did not find any documentation on this particular subject).
>
> This is a very peculiar behaviour that we really want to disable.
>
> We are using CodeWarrior 6.
>
> Thank you.
>
> -----------
>
> Note 1: classical include control
>
> #ifndef __MYFILE_H
> #define __MYFILE_H
>
> // my whole file here
>
> #endif
>
> -----------
>
> Note 2: forced way to handle the behaviour
>
> #ifndef __MYFILE_H
> #include <myfile.h>
> #endif
>
> -----------
>
> --
>
> Best regards,
>
> Ezequiel
> [ [EMAIL PROTECTED] ]
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/