sysmacros.h
Csaba Raduly
rcsaba@gmail.com
Thu Aug 6 10:40:00 GMT 2009
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
More information about the Cygwin
mailing list