Source code of Windows XP (NT5)
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
711 B

  1. // wiostream -- _Winit members, dummy for Microsoft
  2. #include <iostream>
  3. _STD_BEGIN
  4. // OBJECT DECLARATIONS
  5. int _Winit::_Init_cnt = -1;
  6. _CRTIMP2 _Winit::_Winit()
  7. { // initialize standard wide streams first time
  8. if (0 <= _Init_cnt)
  9. ++_Init_cnt;
  10. else
  11. _Init_cnt = 1;
  12. }
  13. _CRTIMP2 _Winit::~_Winit()
  14. { // flush standard wide streams last time
  15. if (--_Init_cnt == 0)
  16. { // flush standard wide streams
  17. if (_Ptr_wcout != 0)
  18. _Ptr_wcout->flush();
  19. if (_Ptr_wcerr != 0)
  20. _Ptr_wcerr->flush();
  21. if (_Ptr_wclog != 0)
  22. _Ptr_wclog->flush();
  23. }
  24. _STD_END
  25. }
  26. /*
  27. * Copyright (c) 1992-2001 by P.J. Plauger. ALL RIGHTS RESERVED.
  28. * Consult your license regarding permissions and restrictions.
  29. V3.10:0009 */