You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2007/10/30 15:30:45 UTC

svn commit: r590081 - /incubator/stdcxx/trunk/src/file.cpp

Author: faridz
Date: Tue Oct 30 07:30:40 2007
New Revision: 590081

URL: http://svn.apache.org/viewvc?rev=590081&view=rev
Log:
2007-10-30 Farid Zaripov <fa...@epam.com>

	Merged r584989 from branches/4.2.0 with a fix for STDCXX-599
	* file.cpp [!_RWSTD_NO_PURE_C_HEADERS] (mkstemp): Relaxed a guard
	around a declaration of a POSIX (but not C) function to enable it
	in strict C++ environments (e.g., with EDG eccp).

Modified:
    incubator/stdcxx/trunk/src/file.cpp

Modified: incubator/stdcxx/trunk/src/file.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/file.cpp?rev=590081&r1=590080&r2=590081&view=diff
==============================================================================
--- incubator/stdcxx/trunk/src/file.cpp (original)
+++ incubator/stdcxx/trunk/src/file.cpp Tue Oct 30 07:30:40 2007
@@ -69,7 +69,8 @@
 #endif   // _MSC_VER
 
 
-#if defined (_RWSTD_NO_MKSTEMP) && !defined (_RWSTD_NO_MKSTEMP_IN_LIBC)
+#if     defined (_RWSTD_NO_MKSTEMP) && !defined (_RWSTD_NO_MKSTEMP_IN_LIBC) \
+    || !defined (_RWSTD_NO_PURE_C_HEADERS)
 
 extern "C" {
 
@@ -82,7 +83,7 @@
 
 #  undef _RWSTD_NO_MKSTEMP
 
-#endif   // _RWSTD_NO_MKSTEMP[_IN_LIBC]
+#endif   // _RWSTD_NO_MKSTEMP[_IN_LIBC] || !_NO_PURE_C_HEADERS
 
 
 #if     defined (_RWSTD_NO_FILENO) && !defined (_RWSTD_NO_FILENO_IN_LIBC) \