WindowsXP-SP1/base/crts/crtw32/iostream/cerrinit.cpp
2020-09-30 16:53:49 +02:00

32 lines
961 B
C++

/***
*cerrinit.cpp - definitions and initialization for predefined stream cerr.
*
* Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Definitions and initialization of predefined stream cerr.
*
*Revision History:
* 11 18-91 KRS Created.
* 01-12-95 CFW Debug CRT allocs.
* 09-10-94 CFW Static Win32s objects do not alloc on instantiation.
* 06-14-95 CFW Comment cleanup.
* 05-13-99 PML Remove Win32s
*
*******************************************************************************/
#include <cruntime.h>
#include <internal.h>
#include <iostream.h>
#include <fstream.h>
#include <dbgint.h>
#pragma hdrstop
// put contructors in special MS-specific XIFM segment
#pragma warning(disable:4074) // ignore init_seg warning
#pragma init_seg(compiler)
ostream_withassign cerr(_new_crt filebuf(2));
static Iostream_init __InitCerr(cerr,1);