Re(cap): Which Unix?

faustus at ucbcad.UUCP faustus at ucbcad.UUCP
Thu May 9 14:57:30 AEST 1985


Personally, I don't like the idea of having an include file to tell the
program what version of UNIX you are on -- if you have a large program
with a makefile, it is probably better to do the define there. That way,
if you want to #define around some block of code that will work on
one unix but not on another, you can just define the one you are not
currently using and make sure that things work ok (i.e, you didn't
#define around anything that should be in both versions by accident...)
Also, this works if you want your program to compile on non-unix systems
that will probably not have nice #include files sitting around to tell
you what is going on... But then you don't have make, so...

	Wayne



More information about the Comp.unix.wizards mailing list