This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11953] _REENTRANT defined when compiling non-threaded code.
- From: "david dot nospam dot hopwood at blueyonder dot co dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jul 2005 11:25:08 -0000
- Subject: [Bug libstdc++/11953] _REENTRANT defined when compiling non-threaded code.
- References: <20030817022106.11953.carlo@alinoe.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From david dot nospam dot hopwood at blueyonder dot co dot uk 2005-07-29 11:25 -------
The option inconsistency between platforms is bug 20705.
I agree there should be a #define that says whether POSIX threads are usable
(rather than just supported by the platform), but I think _REENTRANT is the
wrong #define to use. This applies to both C and C++, so the name should be
something like __GCC_PTHREADS__, not __GXX_PTHREADS__.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn|16519 |20705
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11953