Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
744 B

// wiostream -- _Winit members, dummy for Microsoft
#include <iostream>
_STD_BEGIN
// OBJECT DECLARATIONS
int _Winit::_Init_cnt = -1;
_CRTIMP2 _Winit::_Winit()
{ // initialize standard wide streams first time
if (0 <= _Init_cnt)
++_Init_cnt;
else
_Init_cnt = 1;
}
_CRTIMP2 _Winit::~_Winit()
{ // flush standard wide streams last time
if (--_Init_cnt == 0)
{ // flush standard wide streams
if (_Ptr_wcout != 0)
_Ptr_wcout->flush();
if (_Ptr_wcerr != 0)
_Ptr_wcerr->flush();
if (_Ptr_wclog != 0)
_Ptr_wclog->flush();
}
_STD_END
}
/*
* Copyright (c) 1992-2001 by P.J. Plauger. ALL RIGHTS RESERVED.
* Consult your license regarding permissions and restrictions.
V3.10:0009 */