home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / polarity.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  925 b   |  43 lines

  1. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  2. /*++
  3.  
  4. Copyright (C) 1999 Microsoft Corporation
  5.  
  6. Module Name:
  7.  
  8.     POLARITY.H
  9.  
  10. Abstract:
  11.  
  12.     properly map __declspec( dllexport ) or import
  13.  
  14. History:
  15.  
  16. --*/
  17.  
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif
  21.  
  22. // If we are building a the  DLL then define the 
  23. // class as exported otherwise it's imported
  24. // ============================================
  25. #ifndef POLARITY_HEADERFILE_IS_INCLUDED
  26. #define POLARITY_HEADERFILE_IS_INCLUDED
  27. //#pragma message( "Including Polarity.h..." )
  28.  
  29. #ifdef USE_POLARITY
  30.   #ifdef BUILDING_DLL
  31. //   #pragma message( "Building static library or DLL..." )
  32.    #define POLARITY __declspec( dllexport )
  33.   #else 
  34. //   #pragma message( "Building Provider..." )
  35.    #define POLARITY __declspec( dllimport )
  36.   #endif
  37.  #else
  38.   #define POLARITY
  39. //  #pragma message( "NO Polarity...")
  40.  #endif
  41. #endif
  42. #pragma option pop /*P_O_Pop*/
  43.