00001
00002
00003
00004
00005 #if defined(__SWMSW__)
00006
00007
00008 #if defined(_MSC_VER)
00009
00010 # ifdef SWMAKINGDLL
00011 # define SWDLLEXPORT _declspec( dllexport )
00012 # define SWDLLEXPORT_DATA(type) _declspec( dllexport ) type
00013 # define SWDLLEXPORT_CTORFN
00014 # elif defined(SWUSINGDLL)
00015 # define SWDLLEXPORT _declspec( dllimport )
00016 # define SWDLLEXPORT_DATA(type) _declspec( dllimport ) type
00017 # define SWDLLEXPORT_CTORFN
00018 # else
00019 # define SWDLLEXPORT
00020 # define SWDLLEXPORT_DATA(type) type
00021 # define SWDLLEXPORT_CTORFN
00022 # endif
00023
00024 #elif defined(__SWPM__)
00025
00026 # ifdef SWMAKINGDLL
00027 # define SWDLLEXPORT _Export
00028 # define SWDLLEXPORT_DATA(type) _Export type
00029 # define SWDLLEXPORT_CTORFN
00030 # elif defined(SWUSINGDLL)
00031 # define SWDLLEXPORT _Export
00032 # define SWDLLEXPORT_DATA(type) _Export type
00033 # define SWDLLEXPORT_CTORFN
00034 # else
00035 # define SWDLLEXPORT
00036 # define SWDLLEXPORT_DATA(type) type
00037 # define SWDLLEXPORT_CTORFN
00038 # endif
00039
00040 #elif defined(__GNUWIN32__) || defined(__BORLANDC__)
00041
00042 # ifdef SWMAKINGDLL
00043 # define SWDLLEXPORT __declspec( dllexport )
00044 # define SWDLLEXPORT_DATA(type) __declspec( dllexport ) type
00045 # define SWDLLEXPORT_CTORFN
00046 # elif defined(SWUSINGDLL)
00047 # define SWDLLEXPORT __declspec( dllimport )
00048 # define SWDLLEXPORT_DATA(type) __declspec( dllimport ) type
00049 # define SWDLLEXPORT_CTORFN
00050 # else
00051 # define SWDLLEXPORT
00052 # define SWDLLEXPORT_DATA(type) type
00053 # define SWDLLEXPORT_CTORFN
00054 # endif
00055
00056
00057 #else
00058 # define SWDLLEXPORT
00059 # define SWDLLEXPORT_DATA(type) type
00060 # define SWDLLEXPORT_CTORFN
00061 #endif
00062
00063 #else // !Windows
00064 # define SWDLLEXPORT
00065 # define SWDLLEXPORT_DATA(type) type
00066 # define SWDLLEXPORT_CTORFN
00067 #endif // Win/!Win
00068
00069
00070 #if defined(__BORLANDC__) && defined( _RTLDLL )
00071 # define SWDLLIMPORT __import
00072 #else
00073 # define SWDLLIMPORT
00074 #endif