This is the mail archive of the cygwin-developers@cygwin.com 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]

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


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