00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef TOOLS_WIN32_HH
00025 #define TOOLS_WIN32_HH
00026
00027 #ifdef WIN32
00028
00029 #ifndef WIN_EXPORT
00030 #ifdef STATIC_LIB
00031 #define WIN_EXPORT
00032 #define WIN_IMPORT
00033 #define WIN_EXTERN
00034 #else // STATIC_LIB
00035 #define WIN_EXPORT __declspec(dllexport)
00036 #define WIN_IMPORT __declspec(dllimport)
00037 #define WIN_EXTERN extern
00038 #endif // STATIC_LIB
00039 #endif // WIN_EXPORT
00040
00041 #ifndef DLL_TOOLS
00042
00043 #ifdef TOOLS_EXPORTS
00044 # define DLL_TOOLS WIN_EXPORT
00045 # define DLL_TOOLS_EXTERN WIN_EXPORT extern
00046 # define DLL_TOOLS_EXTERNC extern "C" WIN_EXPORT
00047 #else // TOOLS_EXPORTS
00048 # define DLL_TOOLS WIN_IMPORT
00049 # define DLL_TOOLS_EXTERN WIN_IMPORT extern
00050 # define DLL_TOOLS_EXTERNC extern "C" WIN_IMPORT
00051 #endif // TOOLS_EXPORTS
00052
00053 #endif // DLL_TOOLS
00054
00055 #else // WIN32
00056
00057 #define DLL_TOOLS
00058
00059 #endif // WIN32
00060
00061 #endif // TOOLS_WIN32_HH