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.

55 lines
1.5 KiB

  1. /***
  2. *useoldio.h - force the use of the Microsoft "classic" iostream libraries.
  3. *
  4. * Copyright (c) 1996-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Generates default library directives for the old ("classic") IOSTREAM
  8. * libraries. The exact name of the library specified in the directive
  9. * depends on the compiler switches (-ML, -MT, -MD, -MLd, -MTd, and -MDd).
  10. *
  11. * This header file is only included by other header files.
  12. *
  13. * [Public]
  14. *
  15. ****/
  16. #ifndef _USE_OLD_IOSTREAMS
  17. #define _USE_OLD_IOSTREAMS
  18. #ifndef _M_IA64
  19. /*
  20. * Warning C4995, '_OLD_IOSTREAMS_ARE_DEPRECATED' is a deprecated name, is
  21. * being issued because the old I/O Streams headers iostreams.h et al will no
  22. * longer be supported from VC8. Replace references such as #include
  23. * <iostreams.h> with #include <iostreams>, using the new, more conformant, I/O
  24. * Streams headers.
  25. */
  26. #pragma deprecated(_OLD_IOSTREAMS_ARE_DEPRECATED)
  27. extern void _OLD_IOSTREAMS_ARE_DEPRECATED();
  28. #endif /* _M_IA64 */
  29. #ifdef _MT
  30. #ifdef _DLL
  31. #ifdef _DEBUG
  32. #pragma comment(lib,"msvcirtd")
  33. #else /* _DEBUG */
  34. #pragma comment(lib,"msvcirt")
  35. #endif /* _DEBUG */
  36. #else /* _DLL */
  37. #ifdef _DEBUG
  38. #pragma comment(lib,"libcimtd")
  39. #else /* _DEBUG */
  40. #pragma comment(lib,"libcimt")
  41. #endif /* _DEBUG */
  42. #endif /* _DLL */
  43. #else /* _MT */
  44. #ifdef _DEBUG
  45. #pragma comment(lib,"libcid")
  46. #else /* _DEBUG */
  47. #pragma comment(lib,"libci")
  48. #endif /* _DEBUG */
  49. #endif
  50. #endif /* _USE_OLD_IOSTREAMS */