<vf***@talktalk.net> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
In some senarios you want to include a file in two or more branches of
your project, what is the correct way to do this ? Can it be done
without #ifdef, or is that the correct way ?
A common way to write a header is:
// yadda.h
#if !defined(YADDA_H)
#define YADDA_H
....
#endif // end of file
It's not that elegant, but the language doesn't really provide a better way.