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
669 B

  1. // wcin -- initialize standard wide input 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 wfin(_cpp_stdin);
  10. _CRTIMP2 wistream wcin(&wfin);
  11. // INITIALIZATION CODE
  12. struct _Init_wcin
  13. { // ensures that wcin is initialized
  14. _Init_wcin()
  15. { // initialize wcin
  16. _Ptr_wcin = &wcin;
  17. wcin.tie(_Ptr_wcout);
  18. }
  19. };
  20. static _Init_wcin init_wcin;
  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 */