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.

30 lines
682 B

  1. // wclog -- initialize standard wide log stream
  2. #include <fstream>
  3. #include <iostream>
  4. #pragma warning(disable: 4074)
  5. #pragma init_seg(compiler)
  6. _STD_BEGIN
  7. // OBJECT DECLARATIONS
  8. static _Init_locks initlocks;
  9. static wfilebuf wflog(_cpp_stderr);
  10. _CRTIMP2 wostream wclog(&wflog);
  11. // INITIALIZATION CODE
  12. struct _Init_wclog
  13. { // ensures that wclog is initialized
  14. _Init_wclog()
  15. { // initialize wclog
  16. _Ptr_wclog = &wclog;
  17. wclog.tie(_Ptr_wcout);
  18. }
  19. };
  20. static _Init_wclog init_wclog;
  21. _STD_END
  22. /*
  23. * Copyright (c) 1992-2001 by P.J. Plauger. ALL RIGHTS RESERVED.
  24. * Consult your license regarding permissions and restrictions.
  25. V3.10:0009 */