Re: Macintosh Port diffs

1999-09-04 Thread Bodo Moeller
Andy Polyakov [EMAIL PROTECTED]: -#include sys/types.h -#include sys/stat.h + +#ifndef macintosh +# include sys/types.h +# include sys/stat.h +#endif [...] I'd suggest to replace #ifdef macintosh with #ifdef MAC_OS Maybe MAC_OS is not quite an appropriate symbol, Maybe... How about

Re: Macintosh Port diffs

1999-09-03 Thread Bodo Moeller
Andy Polyakov [EMAIL PROTECTED]: -#include sys/types.h -#include sys/stat.h + +#ifndef macintosh +# include sys/types.h +# include sys/stat.h +#endif [...] I'd suggest to replace #ifdef macintosh with #ifdef MAC_OS and put something like following into e_os.h: #if

Re: Macintosh Port diffs

1999-09-03 Thread Rich Salz
and put something like following into e_os.h: #if defined(__MWERKS__) defined(macintosh) # if macintosh==1 # define MAC_OS # endif #endif That is a very bad way to do things. Use feature tests in your code -- HAVE_SYS_TIME, HAVE_STRCASECMP, etc. Then in a single place (like