Is __MSDOS__ still defined when compiling with djgpp?

405 Views Asked by At

Is using __MSDOS__ enough with djgpp or should __DJGPP__ be used instead?

By comparison, I know _WIN32 isn’t defined by default on cygwin (based on the assumption djgpp and cygwin have the purpose to build an Unix layer to hide real OS details).

I no longer have a DOS machine to test it.

1

There are 1 best solutions below

0
Jens On BEST ANSWER

To list the predefined macros and their values, use

djgpp -E -x c -dM /dev/null