This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug other/11953] _REENTRANT defined when compiling non-threaded code.


------- 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


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