00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00029 #ifndef FLC_SETUP_H
00030 #define FLC_SETUP_H
00031
00032 #include <falcon/config.h>
00033
00034
00035
00036
00037
00038 #ifdef FALCON_SYSTEM_WIN
00039
00040
00041 #if ! defined(_WIN32_WINNT)
00042 #define _WIN32_WINNT 0x0403
00043 #endif
00044
00045
00046
00047
00048
00049
00050
00051 #ifdef _MSC_VER
00052 #undef CDECL
00053 #define CDECL __cdecl
00054 #define FALCON_FUNC \
00055 void CDECL
00056
00057 #ifndef FALCON_ENGINE_STATIC
00058 #if defined(FALCON_ENGINE_EXPORTS)
00059 #define FALCON_DYN_CLASS __declspec(dllexport)
00060 #define FALCON_DYN_SYM __declspec(dllexport)
00061 #define EXTERN_TEMPLATE
00062
00063
00064 #ifndef FALCON_EXPORT_SERVICE
00065 #define FALCON_EXPORT_SERVICE
00066 #endif
00067 #else
00068 #define FALCON_DYN_CLASS __declspec(dllimport)
00069 #define FALCON_DYN_SYM __declspec(dllimport)
00070 #define EXTERN_TEMPLATE export
00071 #endif
00072 #else
00073 #define FALCON_DYN_CLASS
00074 #define FALCON_DYN_SYM
00075 #endif
00076
00077 #ifdef FALCON_EXPORT_SERVICE
00078 #define FALCON_SERVICE __declspec(dllexport)
00079 #else
00080 #define FALCON_SERVICE __declspec(dllimport)
00081 #endif
00082
00083 #define FALCON_FUNC_DYN_SYM \
00084 FALCON_DYN_SYM void CDECL
00085
00086 #define FALCON_MODULE_TYPE \
00087 extern "C" __declspec(dllexport) ::Falcon::Module * CDECL
00088
00089
00090 #pragma warning (disable: 4786 )
00091 #pragma warning (disable: 4291 )
00092 #pragma warning (disable: 579 )
00093 #pragma warning (disable: 4290 )
00094 #pragma warning (disable: 4231 )
00095 #pragma warning (disable: 4355)
00096 #pragma warning (disable: 4996)
00097
00098 #if _MSC_VER <= 1400
00099 #ifndef _WCHAR_T_DEFINED
00100 typedef unsigned short wchar_t;
00101 #endif
00102 #endif
00103
00104 #define atoll _atoi64
00105 #define snprintf _snprintf
00106 #define LLFMT "I64"
00107 #endif
00108
00109
00110 #ifdef __GNUC__
00111 #ifndef CDECL
00112 #define CDECL
00113 #endif
00114 #define FALCON_FUNC \
00115 void
00116
00117 #ifdef FALCON_ENGINE_EXPORTS
00118 #define FALCON_DYN_CLASS __declspec(dllexport)
00119 #define FALCON_DYN_SYM __declspec(dllexport)
00120 #define EXTERN_TEMPLATE
00121 #else
00122 #define FALCON_DYN_CLASS __declspec(dllimport)
00123 #define FALCON_DYN_SYM __declspec(dllimport)
00124 #define EXTERN_TEMPLATE export
00125 #endif
00126
00127 #ifdef FALCON_EXPORT_SERVICE
00128 #define FALCON_SERVICE __declspec(dllexport)
00129 #else
00130 #define FALCON_SERVICE __declspec(dllimport)
00131 #endif
00132
00133 #define FALCON_FUNC_DYN_SYM \
00134 FALCON_DYN_SYM void CDECL
00135
00136 #define FALCON_MODULE_TYPE \
00137 extern "C" __declspec(dllexport) ::Falcon::Module *
00138 #define LLFMT "ll"
00139 #endif
00140
00141
00142
00143 #define DIR_SEP_STR "\\"
00144 #define DIR_SEP_CHR '\\'
00145
00146 #define DEFAULT_TEMP_DIR "C:/TEMP"
00147 #define FALCON_SYS_EOL "\r\n"
00148
00149
00150
00151
00152 #else
00153 #define CDECL
00154 #define FALCON_FUNC \
00155 void
00156
00157 #define FALCON_DYN_CLASS
00158 #define FALCON_DYN_SYM
00159 #define EXTERN_TEMPLATE
00160 #define FALCON_SERVICE
00161
00162 #define FALCON_MODULE_TYPE \
00163 extern "C" ::Falcon::Module *
00164
00165 #define FALCON_FUNC_DYN_SYM FALCON_FUNC
00166
00167 #define DIR_SEP_STR "/"
00168 #define DIR_SEP_CHR '/'
00169 #define DEFAULT_TEMP_DIR "/tmp"
00170 #define FALCON_SYS_EOL "\n"
00171 #define LLFMT "ll"
00172
00173 #endif
00174
00175
00176
00177
00178 #ifndef _STR
00179 #define _STR(x) #x
00180 #endif
00181
00182 #ifndef STR
00183 #define STR(x) _STR(x)
00184 #endif
00185
00186 #endif
00187
00188