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.

30 lines
631 B

  1. // clog -- initialize standard 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 filebuf flog(_cpp_stderr);
  10. _CRTIMP2 ostream clog(&flog);
  11. // INITIALIZATION CODE
  12. struct _Init_clog
  13. { // ensures that clog is initialized
  14. _Init_clog()
  15. { // initialize clog
  16. _Ptr_clog = &clog;
  17. clog.tie(_Ptr_cout);
  18. }
  19. };
  20. static _Init_clog init_clog;
  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 */