00001 00002 #ifndef OSCLCONFIG_CHECK_H_INCLUDED 00003 #define OSCLCONFIG_CHECK_H_INCLUDED 00004 00014 typedef int8 __int8__check__; 00015 typedef uint8 __uint8__check__; 00016 typedef int16 __int16__check__; 00017 typedef uint16 __uint16__check__; 00018 typedef int32 __int32__check__; 00019 typedef uint32 __uint32__check__; 00020 00026 #ifndef OSCL_ASSERT_ALWAYS 00027 #error "ERROR: OSCL_ASSERT_ALWAYS has to be defined to either 1 or 0." 00028 #endif 00029 00030 00036 #ifndef OSCL_DISABLE_INLINES 00037 #error "ERROR: OSCL_DISABLE_INLINES has to be defined to either 1 or 0." 00038 #endif 00039 00045 #ifndef OSCL_HAS_ANSI_STDLIB_SUPPORT 00046 #error "ERROR: OSCL_HAS_ANSI_STDLIB_SUPPORT has to be defined to either 1 or 0." 00047 #endif 00048 00054 #ifndef OSCL_HAS_ANSI_STDIO_SUPPORT 00055 #error "ERROR: OSCL_HAS_ANSI_STDIO_SUPPORT has to be defined to either 1 or 0." 00056 #endif 00057 00063 #ifndef OSCL_HAS_ANSI_STRING_SUPPORT 00064 #error "ERROR: OSCL_HAS_ANSI_STRING_SUPPORT has to be defined to either 1 or 0." 00065 #endif 00066 00072 #ifndef OSCL_HAS_UNICODE_SUPPORT 00073 #error "ERROR: OSCL_HAS_UNICODE_SUPPORT has to be defined to either 1 or 0." 00074 #endif 00075 00082 #ifndef _STRLIT 00083 #error "ERROR: _STRLIT has to be defined." 00084 #endif 00085 00092 #ifndef _STRLIT_CHAR 00093 #error "ERROR: _STRLIT_CHAR has to be defined." 00094 #endif 00095 00103 #if (OSCL_HAS_UNICODE_SUPPORT) && !defined(_STRLIT_WCHAR) 00104 #error "ERROR: _STRLIT_WCHAR has to be defined" 00105 #endif 00106 00113 #if (OSCL_HAS_UNICODE_SUPPORT) && !defined(OSCL_NATIVE_WCHAR_TYPE) 00114 #error "ERROR: OSCL_NATIVE_WCHAR_TYPE has to be defined." 00115 #endif 00116 00122 #ifndef OSCL_HAS_MSWIN_SUPPORT 00123 #error "ERROR: OSCL_HAS_MSWIN_SUPPORT has to be defined to either 1 or 0" 00124 #endif 00125 00131 #ifndef OSCL_HAS_UNIX_SUPPORT 00132 #error "ERROR: OSCL_HAS_UNIX_SUPPORT has to be defined to either 1 or 0." 00133 #endif 00134 00140 #ifndef OSCL_HAS_SYMBIAN_SUPPORT 00141 #error "ERROR: OSCL_HAS_SYMBIAN_SUPPORT has to be defined to either 1 or 0" 00142 #endif 00143 00149 #ifndef OSCL_INTEGERS_WORD_ALIGNED 00150 #error "ERROR: OSCL_INTEGERS_WORD_ALIGNED has to be defined to either 1 or 0." 00151 #endif 00152 00158 #ifndef OSCL_BYTE_ORDER_BIG_ENDIAN 00159 #error "ERROR: OSCL_BYTE_ORDER_BIG_ENDIAN has to be defined to either 1 or 0." 00160 #endif 00161 00167 #ifndef OSCL_BYTE_ORDER_LITTLE_ENDIAN 00168 #error "ERROR: OSCL_BYTE_ORDER_LITTLE_ENDIAN has to be defined to either 1 or 0." 00169 #endif 00170 00175 #if !(OSCL_BYTE_ORDER_BIG_ENDIAN) && !(OSCL_BYTE_ORDER_LITTLE_ENDIAN) 00176 #error "ERROR: either OSCL_BYTE_ORDER_LITTLE_ENDIAN or else OSCL_BYTE_ORDER_BIG_ENDIAN must be 1." 00177 #endif 00178 #if (OSCL_BYTE_ORDER_BIG_ENDIAN) && (OSCL_BYTE_ORDER_LITTLE_ENDIAN) 00179 #error "ERROR: either OSCL_BYTE_ORDER_LITTLE_ENDIAN or else OSCL_BYTE_ORDER_BIG_ENDIAN must be 1." 00180 #endif 00181 00187 #ifndef OSCL_HAS_GLOBAL_VARIABLE_SUPPORT 00188 #error "ERROR: OSCL_HAS_GLOBAL_VARIABLE_SUPPORT has to be defined to either 1 or 0." 00189 #endif 00190 00197 #if !(OSCL_HAS_GLOBAL_VARIABLE_SUPPORT) 00198 #ifndef OSCL_HAS_PARTIAL_GLOBAL_VARIABLE_SUPPORT 00199 #error "ERROR: OSCL_HAS_PARTIAL_GLOBAL_VARIABLE_SUPPORT has to be defined to either 1 or 0." 00200 #endif 00201 #endif 00202 00206 #if (OSCL_BYTE_ORDER_LITTLE_ENDIAN) && (OSCL_BYTE_ORDER_BIG_ENDIAN) 00207 #error "ERROR: Multiple selection for OSCL_BYTE_ORDER." 00208 #endif 00209 00215 #ifndef OSCL_HAS_ANSI_STRING_SUPPORT 00216 #error "ERROR: OSCL_HAS_ANSI_STRING_SUPPORT has to be defined to either 1 or 0." 00217 #endif 00218 00222 #ifndef OSCL_HAS_NATIVE_INT64_TYPE 00223 #error "ERROR: OSCL_HAS_NATIVE_INT64_TYPE has to be defined to either 1 or 0." 00224 #endif 00225 00229 #ifndef OSCL_HAS_NATIVE_UINT64_TYPE 00230 #error "ERROR: OSCL_HAS_NATIVE_UINT64_TYPE has to be defined to either 1 or 0." 00231 #endif 00232 00238 #if OSCL_HAS_NATIVE_INT64_TYPE 00239 #ifndef OSCL_NATIVE_INT64_TYPE 00240 #error "ERROR: OSCL_NATIVE_INT64_TYPE has to be defined." 00241 #endif 00242 #endif 00243 00249 #if OSCL_HAS_NATIVE_UINT64_TYPE 00250 #ifndef OSCL_NATIVE_UINT64_TYPE 00251 #error "ERROR: OSCL_NATIVE_UINT64_TYPE has to be defined." 00252 #endif 00253 #endif 00254 00260 #if OSCL_HAS_NATIVE_INT64_TYPE 00261 #ifndef INT64 00262 #error "ERROR: INT64(x) has to be defined." 00263 #endif 00264 #endif 00265 00271 #if OSCL_HAS_NATIVE_UINT64_TYPE 00272 #ifndef UINT64 00273 #error "ERROR: UINT64(x) has to be defined." 00274 #endif 00275 #endif 00276 00282 #if OSCL_HAS_NATIVE_INT64_TYPE 00283 #ifndef INT64_HILO 00284 #error "ERROR: INT64_HILO(high,low) has to be defined." 00285 #endif 00286 #endif 00287 00293 #if OSCL_HAS_NATIVE_UINT64_TYPE 00294 #ifndef UINT64_HILO 00295 #error "ERROR: UINT64_HILO(high,low) has to be defined." 00296 #endif 00297 #endif 00298 00305 #ifndef OSCL_MEMFRAG_PTR_BEFORE_LEN 00306 #error "ERROR: OSCL_MEMFRAG_PTR_BEFORE_LEN has to be defined to either 0 or 1" 00307 #endif 00308 00314 #ifndef OSCL_HAS_TLS_SUPPORT 00315 #error "ERROR: OSCL_HAS_TLS_SUPPORT has to be defined to either 1 or 0" 00316 #endif 00317 00325 #ifndef OSCL_TLS_IS_KEYED 00326 #error "ERROR: OSCL_TLS_IS_KEYED has to be defined to either 1 or 0" 00327 #endif 00328 00329 00336 #if (OSCL_TLS_IS_KEYED) && !defined(OSCL_TLS_STORE_FUNC) 00337 #error "ERROR: OSCL_TLS_STORE_FUNC has to be defined" 00338 #endif 00339 00346 #if (OSCL_TLS_IS_KEYED) && !defined(OSCL_TLS_GET_FUNC) 00347 #error "ERROR: OSCL_TLS_GET_FUNC has to be defined" 00348 #endif 00349 00356 #if (OSCL_TLS_IS_KEYED) && !defined(OSCL_TLS_KEY_CREATE_FUNC) 00357 #error "ERROR: OSCL_TLS_KEY_CREATE_FUNC has to be defined" 00358 #endif 00359 00366 #if (OSCL_TLS_IS_KEYED) && !defined(OSCL_TLS_KEY_DELETE_FUNC) 00367 #error "ERROR: OSCL_TLS_KEY_DELETE_FUNC has to be defined" 00368 #endif 00369 00370 00377 #if (OSCL_HAS_TLS_SUPPORT) && !(OSCL_TLS_IS_KEYED) && !defined(OSCL_TLS_STORE_FUNC) 00378 #error "ERROR: OSCL_TLS_STORE_FUNC has to be defined" 00379 #endif 00380 00386 #if (OSCL_HAS_TLS_SUPPORT) && !(OSCL_TLS_IS_KEYED) && !defined(OSCL_TLS_GET_FUNC) 00387 #error "ERROR: OSCL_TLS_GET_FUNC has to be defined" 00388 #endif 00389 00393 #if !defined(OSCL_HAS_BASIC_LOCK ) 00394 #error "ERROR: OSCL_HAS_BASIC_LOCK must be defined to 0 or 1" 00395 #endif 00396 00397 00407 #if (OSCL_HAS_BASIC_LOCK) && !defined(TOsclBasicLockObject) 00408 typedef TOsclBasicLockObject __verify__TOsclBasicLockObject__defined__; 00409 #endif 00410 00413 #endif // OSCLCONFIG_CHECK_H_INCLUDED 00414 00415