------- Comment #12 from pcarlini at suse dot de 2005-11-08 11:30 ------- In my opinion, the way to go is consistently using the macro __GTHREADS which is undefined when --enable-threads=single is passed. This is consistent with the approach already used in mt_allocator, for instance. And indeed, in mt_alloc nothing is thread-safe in that case (but much simpler and faster!).
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24704