home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / cerrinit.cpp < prev    next >
C/C++ Source or Header  |  1998-06-17  |  699b  |  24 lines

  1. /***
  2. *cerrinit.cpp - definitions and initialization for predefined stream cerr.
  3. *
  4. *       Copyright (c) 1991-1997, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *       Definitions and initialization of predefined stream cerr.
  8. *
  9. *******************************************************************************/
  10. #include <cruntime.h>
  11. #include <internal.h>
  12. #include <iostream.h>
  13. #include <fstream.h>
  14. #include <dbgint.h>
  15. #pragma hdrstop
  16.  
  17. // put contructors in special MS-specific XIFM segment
  18. #pragma warning(disable:4074)   // ignore init_seg warning
  19. #pragma init_seg(compiler)
  20.  
  21. ostream_withassign cerr(_new_crt filebuf(2));
  22.  
  23. static Iostream_init  __InitCerr(cerr,1);
  24.