Re: Macros "major" and "minor"

2004-06-16 Thread Corinna Vinschen
On Jun 15 14:41, Martin Magnusson wrote: > I recently ran into problems when compiling a matrix library containing > a function called "minor". Apparently, the file > /usr/include/sys/sysmacros.h has the following definitions: > > #ifdef __CYGWIN_USE_BIG_TYPES__ > #define major(dev) ((int)(((dev

Macros "major" and "minor"

2004-06-15 Thread Martin Magnusson
I recently ran into problems when compiling a matrix library containing a function called "minor". Apparently, the file /usr/include/sys/sysmacros.h has the following definitions: #ifdef __CYGWIN_USE_BIG_TYPES__ #define major(dev) ((int)(((dev) >> 16) & 0x)) #define minor(dev) ((int)((dev) &