This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Predefining __OS_DOS__


Hi, folks!

It is important for GNU Pascal, but it might be useful for C
programmers, too.

What about adding "-D__OS_DOS__" to the `CPP_PREDEFINES' of all
MS-DOS-like operating systems?

This would result in this symbol being predefined when compiling
a program for an MS-DOS-like target system.  Programmers writing
intended-to-be-portable programs can use this to determine
whether a system supports drives etc.

This would combine the often-needed

    #if defined (MSDOS) || defined (_WIN32) || defined (__EMX__)

to

    #ifdef __OS_DOS__

This change would affect the following files:

    dsp16xx/dsp16xx.h    (MSDOS)
    i386/go32-rtems.h    (MSDOS)
    i386/go32.h          (MSDOS)
    alpha/win-nt.h       (_WIN32)
    i386/mingw32.h       (_WIN32)
    i386/win-nt.h        (_WIN32)
    rs6000/cygwin32.h    (_WIN32)
    rs6000/win-nt.h      (_WIN32)
    EMX sources: tm.h    (__EMX__)

Greetings,

    Peter

-- 
Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/
Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-980830
  PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75
Fight the SPAM and UBE! - http://spam.abuse.net/ - http://maps.vix.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]