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.

46 lines
887 B

  1. /***
  2. *use_ansi.h - pragmas for ANSI Standard C++ libraries
  3. *
  4. * Copyright (c) 1996-2001, 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. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif
  16. #ifndef _USE_ANSI_CPP
  17. #define _USE_ANSI_CPP
  18. #ifdef _MT
  19. #if defined(_DLL) && !defined(_STATIC_CPPLIB)
  20. #ifdef _DEBUG
  21. #pragma comment(lib,"msvcprtd")
  22. #else // _DEBUG
  23. #pragma comment(lib,"msvcprt")
  24. #endif // _DEBUG
  25. #else // _DLL && !STATIC_CPPLIB
  26. #ifdef _DEBUG
  27. #pragma comment(lib,"libcpmtd")
  28. #else // _DEBUG
  29. #pragma comment(lib,"libcpmt")
  30. #endif // _DEBUG
  31. #endif // _DLL && !STATIC_CPPLIB
  32. #else // _MT
  33. #ifdef _DEBUG
  34. #pragma comment(lib,"libcpd")
  35. #else // _DEBUG
  36. #pragma comment(lib,"libcp")
  37. #endif // _DEBUG
  38. #endif
  39. #endif // _USE_ANSI_CPP