Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 84450 invoked from network); 20 Sep 2007 16:50:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Sep 2007 16:50:18 -0000 Received: (qmail 17373 invoked by uid 500); 20 Sep 2007 16:50:10 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 17355 invoked by uid 500); 20 Sep 2007 16:50:10 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 17344 invoked by uid 99); 20 Sep 2007 16:50:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 09:50:10 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 16:52:17 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EED601A9832; Thu, 20 Sep 2007 09:49:54 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r577809 - in /incubator/stdcxx/trunk/tests: regress/18.limits.stdcxx-436.cpp self/0.printf.cpp self/0.process.cpp Date: Thu, 20 Sep 2007 16:49:53 -0000 To: stdcxx-commits@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070920164954.EED601A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Thu Sep 20 09:49:50 2007 New Revision: 577809 URL: http://svn.apache.org/viewvc?rev=577809&view=rev Log: 2007-09-20 Martin Sebor * 0.printf.cpp (__PURE_CNAME): Undefined Compaq (now HP) C++ macro to bring in ENOMEM from otherwise guarded (and undefined) by the compiler's strict implementation of the C++ libc headers in response to the -std strict_ansi_errors command line option. * 0.process: Ditto for ENOENT, ECHILD, and ESRCH. * 18.limits.stdcxx-436.cpp: Same for popen(). Modified: incubator/stdcxx/trunk/tests/regress/18.limits.stdcxx-436.cpp incubator/stdcxx/trunk/tests/self/0.printf.cpp incubator/stdcxx/trunk/tests/self/0.process.cpp Modified: incubator/stdcxx/trunk/tests/regress/18.limits.stdcxx-436.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/regress/18.limits.stdcxx-436.cpp?rev=577809&r1=577808&r2=577809&view=diff ============================================================================== --- incubator/stdcxx/trunk/tests/regress/18.limits.stdcxx-436.cpp (original) +++ incubator/stdcxx/trunk/tests/regress/18.limits.stdcxx-436.cpp Thu Sep 20 09:49:50 2007 @@ -24,8 +24,12 @@ * **************************************************************************/ -#include // for MB_LEN_MAX #include // for assert() +#include // for MB_LEN_MAX + +// tell Compaq C++ we need the declaration of the POSIX popen() function +// that's guarded (not declared) in the compiler's pure C++ libc headers +#undef __PURE_CNAME #include // for popen(), fscanf(), pclose(), ... #if defined(_WIN32) || defined(_WIN64) @@ -55,4 +59,3 @@ return 0; } - Modified: incubator/stdcxx/trunk/tests/self/0.printf.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/self/0.printf.cpp?rev=577809&r1=577808&r2=577809&view=diff ============================================================================== --- incubator/stdcxx/trunk/tests/self/0.printf.cpp (original) +++ incubator/stdcxx/trunk/tests/self/0.printf.cpp Thu Sep 20 09:49:50 2007 @@ -22,9 +22,13 @@ * implied. See the License for the specific language governing * permissions and limitations under the License. * - * Copyright 2005-2006 Rogue Wave Software. + * Copyright 2005-2007 Rogue Wave Software, Inc. * **************************************************************************/ + +// tell Compaq C++ we need ENOMEM (defined by POSIX +// but not in the compiler's pure C++ libc headers) +#undef __PURE_CNAME #include #include // for rw_pid_t Modified: incubator/stdcxx/trunk/tests/self/0.process.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/self/0.process.cpp?rev=577809&r1=577808&r2=577809&view=diff ============================================================================== --- incubator/stdcxx/trunk/tests/self/0.process.cpp (original) +++ incubator/stdcxx/trunk/tests/self/0.process.cpp Thu Sep 20 09:49:50 2007 @@ -25,8 +25,11 @@ * **************************************************************************/ +// tell Compaq C++ we need POSIX errno constants that are otherwise +// guarded (not defined) in the compiler's pure C++ libc headers +#undef __PURE_CNAME +#include // for ENOENT, ECHILD, ESRCH, errno #include // for strcmp() -#include // for errno #include // for rw_process_create(), rw_waitpid() #include // for rw_test()