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
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
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