This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Predefining __OS_DOS__
Jeffrey A Law wrote:
>
> You say it is important to Pascal -- why? Seems to me that is this purely
> a target issue, why does Pascal about defining __OS_DOS__ for the target?
>
> I'd actually recommend programmers use the specific case they care about.
Up to now, `MSDOS', `_WIN32' and `__EMX__' always occured in
this combination in the GPC project. Sometimes someone forgot
one (or two) of them and caused unpleasant bugs. I don't know,
but I can imagine that similar things have happened in the C
world, too.
> If they want a #define for generic dos-like stuff, they can always add
>
> #if defined (MSDOS) || defined (_WIN32) || defined (__EMX__)
> #define __OS_DOS__
> #endif
This is confusing for Pascal programmers since there is no
symbol `||' in Pascal.
> To one of their common header files.
There are no header files in Pascal. One would have to add this
to each source file.
Peter