On Thu, 29 May 1997, The African Chief wrote:
I see that "__unix__" is defined. This is very worrying. If I do {$ifdef __unix__} the code gets compiled (why? I am using DOS, not unix).
The thing is that DJGPP is mainly a platform that emulates a Unix programming environment on DOS, to ease the porting of Unix programs to DOS. Theoretically, Unix programs should compile with minimal changes with DJGPP.
In the meantime, can somebody please send a copy of the defines on; EMX, Linux, Solaris ? Thanks!
Here it is for Linux:
gpc version 970510(2.7.2.1) /usr/lib/gcc-lib/i586-unknown-linux/2.7.2.1/gpc-cpp -lang-pascal -v -nocharescape -undef -D__GNUC__=970510(2 -D__GPC__=970510(2 -D__GNUC_MINOR__=7 -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix) -Asystem(posix) -Acpu(i386) -Amachine(i386) -D__i486__ foo.p /tmp/cca04464.i GNU CPP version 970510(2.7.2.1) (i386 Linux/ELF)
Pierre Phaneuf
"The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense." - Edsger W. Dijkstra.