dlldefns.h

Go to the documentation of this file.
00001 /**
00002  * \file dlldefns.h <mi32/dlldefns.h>
00003  * \brief DLL import/export definitions
00004  *
00005  * \if NODOC
00006  * $Log: dlldefns.h_v $
00007  * Revision 1.2  2003/09/15 13:49:56  fileserver!dwilliss
00008  * Doxygen
00009  *
00010  * \endif
00011  */
00012 
00013 #ifndef  INC_MI32_DLLDEFNS_H
00014 #define  INC_MI32_DLLDEFNS_H
00015 
00016 #if defined(NODLLLINKAGE)
00017    //! Specifically disabled
00018    #define MI_DLLIMPORT
00019    #define MI_DLLEXPORT
00020    #define MI_DLLCLASSIMPORT
00021    #define MI_DLLCLASSEXPORT
00022 #elif defined(WIN32)
00023    //! Windows
00024    #define MI_DLLIMPORT extern __declspec(dllimport)
00025    #define MI_DLLEXPORT __declspec(dllexport)
00026    #define MI_DLLCLASSIMPORT  __declspec(dllimport)
00027    #define MI_DLLCLASSEXPORT  __declspec(dllexport)
00028 #elif (defined(MAC_NATIVE) && defined(USEDLLS))
00029    //! Macintosh
00030    #define MI_DLLIMPORT extern __declspec(import)
00031    #define MI_DLLEXPORT __declspec(export)
00032    #define MI_DLLCLASSIMPORT  
00033    #define MI_DLLCLASSEXPORT  
00034    //! On Macs (Metrowerks CodeWarrior compiler), you have to do a 
00035    //!   #pragma export on
00036    //! before the class and 
00037    //!   #pragma export reset 
00038    //! after the class.   Thanks for being different, twits!
00039 #else
00040    //! Not implemented
00041    #define MI_DLLIMPORT
00042    #define MI_DLLEXPORT
00043    #define MI_DLLCLASSIMPORT
00044    #define MI_DLLCLASSEXPORT
00045 #endif
00046 
00047 #endif   //!< INC_MI32_DLLDEFNS_H

Generated on Tue Dec 14 13:18:20 2004 for TNTsdk by  doxygen 1.3.8-20040913