public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
* _POSIX_THREAD constant
@ 1999-10-20  7:01 aureliom
  0 siblings, 0 replies; only message in thread
From: aureliom @ 1999-10-20  7:01 UTC (permalink / raw)
  To: pthreads-win32

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:

#ifndef _POSIX_THREADS
#define _POSIX_THREADS
#endif

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.

Thanks,
Aurelio Medina
Bank of America, Distributed Systems Management
mailto:aureliom@crt.com < mailto:aureliom@crt.com > 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-10-20  7:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-20  7:01 _POSIX_THREAD constant aureliom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).