This is the mail archive of the
mailing list for the pthreas-win32 project.
- To: pthreads-win32 at sourceware dot cygnus dot com
- Subject: _POSIX_THREAD constant
- From: aureliom at crt dot com
- Date: Wed, 20 Oct 1999 09:00:33 -0500
To whom it may concern,
Can someone in a future version wrap the compile-time symbolic constant in
the 'pthread.h' header file as follows:
This constant, as well as a few others, is generally set in the 'unistd.h'
header file at compile time (UNIX). My WinNT/UNIX program uses this
constant to determine if POSIX threads are available at compile time and
uses different code segments depending on this check. On WinNT I set this
variable explicitly in the make/project file (i.e. /D "_POSIX_THREADS")
since there is no 'unistd.h' header file. This in turn leads to a 'warning
C4005: '_POSIX_THREADS' : macro redefinition' message. I understand this is
a very minor issue, but this will eliminate this warning for those of us who
have cross-platform applications that need to determine at compile time if
POSIX threads are available.
Bank of America, Distributed Systems Management