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.

63 lines
1.7 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. *Revision History:
  16. * 04-16-96 JWM new file
  17. * 02-24-97 GJF Detab-ed.
  18. * 05-31-00 GB Added warning for old iostream are deprected
  19. *
  20. ****/
  21. #ifndef _USE_OLD_IOSTREAMS
  22. #define _USE_OLD_IOSTREAMS
  23. #ifndef _INTERNAL_IFSTRIP_
  24. #pragma warning(disable : 4995)
  25. #endif /* _INTERNAL_IFSTRIP_ */
  26. #ifndef _M_IA64
  27. /*
  28. * Warning C4995, '_OLD_IOSTREAMS_ARE_DEPRECATED' is a deprecated name, is
  29. * being issued because the old I/O Streams headers iostreams.h et al will no
  30. * longer be supported from VC8. Replace references such as #include
  31. * <iostreams.h> with #include <iostreams>, using the new, more conformant, I/O
  32. * Streams headers.
  33. */
  34. #pragma deprecated(_OLD_IOSTREAMS_ARE_DEPRECATED)
  35. extern void _OLD_IOSTREAMS_ARE_DEPRECATED();
  36. #endif /* _M_IA64 */
  37. #ifdef _MT
  38. #ifdef _DLL
  39. #ifdef _DEBUG
  40. #pragma comment(lib,"msvcirtd")
  41. #else /* _DEBUG */
  42. #pragma comment(lib,"msvcirt")
  43. #endif /* _DEBUG */
  44. #else /* _DLL */
  45. #ifdef _DEBUG
  46. #pragma comment(lib,"libcimtd")
  47. #else /* _DEBUG */
  48. #pragma comment(lib,"libcimt")
  49. #endif /* _DEBUG */
  50. #endif /* _DLL */
  51. #else /* _MT */
  52. #ifdef _DEBUG
  53. #pragma comment(lib,"libcid")
  54. #else /* _DEBUG */
  55. #pragma comment(lib,"libci")
  56. #endif /* _DEBUG */
  57. #endif
  58. #endif /* _USE_OLD_IOSTREAMS */