Polarity.h 800 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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