#ifdef __CYGWIN_USE_BIG_TYPES__ #define major(dev) ((int)(((dev) >> 16) & 0xffff)) #define minor(dev) ((int)((dev) & 0xffff)) #define makedev(major, minor) (((major) << 16) | ((minor) & 0xffff)) #else #define major(dev) ((int)(((dev) >> 8) & 0xff)) #define minor(dev) ((int)((dev) & 0xff)) #define makedev(major, minor) (((major) << 8) | ((minor) & 0xff)) #endif
Defining macros with names like "major" and "minor" is really not good, IMO. This should probably be changed, if possible.
/ martin
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/