home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / useoldio.h < prev    next >
C/C++ Source or Header  |  1998-06-16  |  1KB  |  44 lines

  1. /***
  2. *useoldio.h - force the use of the Microsoft "classic" iostream libraries.
  3. *
  4. *       Copyright (c) 1996-1997, 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.  
  17. #ifndef _USE_OLD_IOSTREAMS
  18. #define _USE_OLD_IOSTREAMS
  19. #ifdef  _MT
  20. #ifdef  _DLL
  21. #ifdef  _DEBUG
  22. #pragma comment(lib,"msvcirtd")
  23. #else   /* _DEBUG */
  24. #pragma comment(lib,"msvcirt")
  25. #endif  /* _DEBUG */
  26.  
  27. #else   /* _DLL */
  28. #ifdef  _DEBUG
  29. #pragma comment(lib,"libcimtd")
  30. #else   /* _DEBUG */
  31. #pragma comment(lib,"libcimt")
  32. #endif  /* _DEBUG */
  33. #endif  /* _DLL */
  34.  
  35. #else   /* _MT */
  36. #ifdef  _DEBUG
  37. #pragma comment(lib,"libcid")
  38. #else   /* _DEBUG */
  39. #pragma comment(lib,"libci")
  40. #endif  /* _DEBUG */
  41. #endif
  42.  
  43. #endif  /* _USE_OLD_IOSTREAMS */
  44.