retitle 485135 g++: unconditionally defines _GNU_SOURCE reassign 485135 g++-4.3 thanks
On Sun, Jun 08, 2008 at 03:43:10PM +0200, Sven Gaerner wrote: > Package: libc6-dev > Version: 2.7-10 > Severity: normal > > > Hi, > > I want to use the XSI-compliant version of strerror_r(). The code below > compiles > without any error using the gcc. > > Trying to compile this code as C++ code using the g++ always fails because the > compiler always tries to use the GNU version of strerror_r() that returns an > char* instead of an int. Trying to define _XOPEN_SOURCE=600 does not change > anything. > The GNU version is used because _GNU_SOURCE is defined. It is defined unconditionally by g++. -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [EMAIL PROTECTED] | [EMAIL PROTECTED] `- people.debian.org/~aurel32 | www.aurel32.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]