stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r608712 - /incubator/stdcxx/trunk/include/ansi/cstdio
Date Fri, 04 Jan 2008 02:03:46 GMT
Author: sebor
Date: Thu Jan  3 18:03:44 2008
New Revision: 608712

URL: http://svn.apache.org/viewvc?rev=608712&view=rev
Log:
2008-01-03  Martin Sebor  <sebor@roguewave.com>

	STDCXX-195
	* cstdio [_RWSTD_STRICT_ANSI] (fpos_t, remove, rename, tmpfile,
	tmpnam, fclose, fflush, fopen, freopen, setbuf, setvbuf, fprintf,
	fscanf, printf, scanf, sprintf, sscanf, vfprintf, vprintf, vsprintf,
	fgetc, fgets, fputc, fputs, getc, getchar, gets, putc, putchar,
	puts, ungetc, fread, fwrite, fgetpos, fseek, fsetpos, ftell, rewind,
	clearerr, feof, ferror, perror): Undefined shadow macros in strict
	mode (only).

Modified:
    incubator/stdcxx/trunk/include/ansi/cstdio

Modified: incubator/stdcxx/trunk/include/ansi/cstdio
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/ansi/cstdio?rev=608712&r1=608711&r2=608712&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/ansi/cstdio (original)
+++ incubator/stdcxx/trunk/include/ansi/cstdio Thu Jan  3 18:03:44 2008
@@ -23,7 +23,7 @@
  * implied.   See  the License  for  the  specific language  governing
  * permissions and limitations under the License.
  *
- * Copyright 1994-2006 Rogue Wave Software.
+ * Copyright 1994-2007 Rogue Wave Software, Inc.
  * 
  **************************************************************************/
 
@@ -256,7 +256,55 @@
 
 }   // std
 
-#endif   // !_RWSTD_NO_NAMESPACE && !_RWSTD_NO_HONOR_STD && !_RWSTD_NO_USING_LIBC_IN_STD
+
+#ifdef _RWSTD_STRICT_ANSI
+// undefine shadow macros in strict mode
+#  undef fpos_t
+#  undef remove
+#  undef rename
+#  undef tmpfile
+#  undef tmpnam
+#  undef fclose
+#  undef fflush
+#  undef fopen
+#  undef freopen
+#  undef setbuf
+#  undef setvbuf
+#  undef fprintf
+#  undef fscanf
+#  undef printf
+#  undef scanf
+#  undef sprintf
+#  undef sscanf
+#  undef vfprintf
+#  undef vprintf
+#  undef vsprintf
+#  undef fgetc
+#  undef fgets
+#  undef fputc
+#  undef fputs
+#  undef getc
+#  undef getchar
+#  undef gets
+#  undef putc
+#  undef putchar
+#  undef puts
+#  undef ungetc
+#  undef fread
+#  undef fwrite
+#  undef fgetpos
+#  undef fseek
+#  undef fsetpos
+#  undef ftell
+#  undef rewind
+#  undef clearerr
+#  undef feof
+#  undef ferror
+#  undef perror
+#endif
+
+
+#endif   // !_NO_NAMESPACE && !__NO_HONOR_STD && !_NO_USING_LIBC_IN_STD
 
 #endif   // _RWSTD_CSTDIO_INCLUDED
 



Mime
View raw message