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

  1. /***
  2. *use_ansi.h - pragmas for ANSI Standard C++ libraries
  3. *
  4. *    Copyright (c) 1996-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       This header is intended to force the use of the appropriate ANSI
  8. *       Standard C++ libraries whenever it is included.
  9. *
  10. *       [Public]
  11. *
  12. ****/
  13.  
  14.  
  15. #if     _MSC_VER > 1000
  16. #pragma once
  17. #endif
  18.  
  19. #ifndef _USE_ANSI_CPP
  20. #define _USE_ANSI_CPP
  21.  
  22. #ifdef _MT
  23. #ifdef _DLL
  24. #ifdef _DEBUG
  25. #pragma comment(lib,"msvcprtd")
  26. #else    // _DEBUG
  27. #pragma comment(lib,"msvcprt")
  28. #endif    // _DEBUG
  29.  
  30. #else    // _DLL
  31. #ifdef _DEBUG
  32. #pragma comment(lib,"libcpmtd")
  33. #else    // _DEBUG
  34. #pragma comment(lib,"libcpmt")
  35. #endif    // _DEBUG
  36. #endif    // _DLL
  37.  
  38. #else    // _MT
  39. #ifdef _DEBUG
  40. #pragma comment(lib,"libcpd")
  41. #else    // _DEBUG
  42. #pragma comment(lib,"libcp")
  43. #endif    // _DEBUG
  44. #endif
  45.  
  46. #endif    // _USE_ANSI_CPP
  47.