This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

sysmacros.h


Why does /usr/include/cygwin/types.h include /usr/include/sys/sysmacros.h ?

As far as I  {and  find /usr/include/ /usr/local/include/ -name *.h |
xargs egrep -n '\b(major|minor) *\('  } can see, the "major" and
"minor" macros are not used by any system header. These macros don't
follow the usual C/C++ coding convention of all-uppercase macro names
and just caused some ... interesting errors in the project I'm working
on.

If any program needs sys/sysmacros.h, it should #include the header explicitly.

Csaba
-- 
Life is complex, with real and imaginary parts

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]