#226: Fix includes
----------------------+-----------------------------------------------------
Reporter: metux | Owner: metux
Type: defect | Status: accepted
Priority: major | Milestone: 4.7
Component: mc-core | Version: 4.6.1
Resolution: | Keywords: review
Blocking: | Blockedby:
----------------------+-----------------------------------------------------
Comment(by slyfox):
Some thrown out code snippets look very ancient:
-#ifndef HAVE_MEMMOVE
-/* for Christophe */
-static void *memmove (void *dest, const void *src, size_t n)
-{
...
-}
-#endif /* !HAVE_MEMMOVE */
-/* Replacement for O_NONBLOCK */
-#ifndef O_NONBLOCK
-#ifdef O_NDELAY /* SYSV */
-#define O_NONBLOCK O_NDELAY
-#else /* BSD */
-#define O_NONBLOCK FNDELAY
-#endif /* !O_NDELAY */
-#endif /* !O_NONBLOCK */
-#if !defined(HAVE_SYS_TIME_H)
-struct timeval {
- long int tv_sec; /* seconds */
- long int tv_usec; /* microseconds */
-};
-#endif /* !HAVE_SYS_TIME_H */
etc.
Maybe we should have one global implicit config.h to hold that
oddities/standard misfollowing?
BTW, what minimal C standard/OS standard compliance do we plan to support?
--
Ticket URL: <www.midnight-commander.org/ticket/226#comment:3>
Midnight Commander <www.midnight-commander.org>
Midnight Development Center
_______________________________________________
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel