Leaked source code of windows server 2003
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.

40 lines
840 B

  1. /*++
  2. Copyright (C) 1999 Microsoft Corporation
  3. Module Name:
  4. POLARITY.H
  5. Abstract:
  6. properly map __declspec( dllexport ) or import
  7. History:
  8. --*/
  9. #if _MSC_VER > 1000
  10. #pragma once
  11. #endif
  12. // If we are building the DLL then define the
  13. // class as exported otherwise as imported
  14. // ============================================
  15. #ifndef POLARITY_HEADERFILE_IS_INCLUDED
  16. #define POLARITY_HEADERFILE_IS_INCLUDED
  17. //#pragma message( "Including Polarity.h..." )
  18. #ifdef USE_POLARITY
  19. #ifdef BUILDING_DLL
  20. // #pragma message( "Building static library or DLL..." )
  21. #define POLARITY __declspec( dllexport )
  22. #else
  23. // #pragma message( "Building Provider..." )
  24. #define POLARITY __declspec( dllimport )
  25. #endif
  26. #else
  27. #define POLARITY
  28. // #pragma message( "NO Polarity...")
  29. #endif
  30. #endif