[Bug other/11953] _REENTRANT defined when compiling non-threaded code.
redi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu May 13 15:56:00 GMT 2004
------- Additional Comments From redi at gcc dot gnu dot org 2004-05-13 11:15 -------
Bug 15415 relates to problems using Boost due to this issue, which I don't think
is INVALID.
Ben's suggestion of using _POSIX_THREADS >= 0 doesn't work either, as it is also
defined whether you use -pthread or not (at least on Linux and FreeBSD)
Would it be possible for all relevant platforms to define something such as
_GXX_PTHREADS when -pthread is given? This would allow Boost to reliably detect
whether or not to use threadsafe constructs when compiled with G++ 3.4
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11953
More information about the Gcc-bugs
mailing list