[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MINTOS] compiler switch (was: Re: MiNT goes UNiX, ...)



The __MINT__ flag is a misnomer that really should be __MINTLIB__.

Because of historical practice, I'd reccomend that this misnomer not
be changed.

Since the whole point of the mint library is to provide a UNIX-like
environment, the __MINT__ flag should be interpreted as "MiNT running
on a UNIX-like system", e.g. you shouldn't mangle pathnames and so on.

If you want to make it possible for people to compile your code in
such a way that it works on plain TOSFS, I'd reccommend the following:

#ifdef __atarist__
#ifndef __MINT__
#define TOSFS
#endif
#endif

Then you can use the TOSFS flag as an indicator as to whether you
should mangle filenames that tosfs can't deal with.  Anyone who wants
to compile this code for use with MiNT and plain TOS filesystem can
then just add -DTOSFS in the makefile.

--
entropy -- it's not just a good idea, it's the second law.
Personal mail:      entropy@gnu.ai.mit.edu
MiNT library mail:  entropy@terminator.rs.itd.umich.edu