This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
RE: Should sys/types.h include sys/sysmacros.h?
- From: "Gerald S. Williams" <gsw at agere dot com>
- To: <cygwin-developers at cygwin dot com>
- Date: Thu, 23 May 2002 13:29:04 -0400
- Subject: RE: Should sys/types.h include sys/sysmacros.h?
Corinna Vinschen wrote:
> if !_POSIX_THREADS || __CYGWIN__
> so it's always included when building under Cygwin.
My mistake. Sorry for the confusion--I missed the "!" in the
following:
#if defined(_POSIX_THREADS) && !defined(__CYGWIN__)
...90 lines deleted...
#else
#if defined (__CYGWIN__)
#include <cygwin/types.h>
#endif
#endif /* defined(_POSIX_THREADS) */
Its fine the way it is. Although personally, I'd find it
easier to follow written like this:
#if defined(_POSIX_THREADS) && !defined(__CYGWIN__)
...90 lines deleted...
#endif /* defined(_POSIX_THREADS) && !defined(__CYGWIN__) */
#if defined(__CYGWIN__)
#include <cygwin/types.h>
#endif
-Jerry