This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/49745] error: âint truncateâ redeclared as different kind of symbol
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Jul 2011 10:51:40 +0000
- Subject: [Bug libstdc++/49745] error: âint truncateâ redeclared as different kind of symbol
- Auto-submitted: auto-generated
- References: <bug-49745-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49745
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-15 10:47:46 UTC ---
Then you probably could use _GLIBCXX_HAS_GTHREADS as the macro to avoid
including unistd.h and assuming that _POSIX_TIMEOUT is defined.
Though perhaps better would be to call it _GTHREADS_ASSUME_POSIX_TIMEOUTS or
similar and define it in some libstdc++ headers before including gthr.h.