Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

osclconfig.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
00003 
00004 //     O S C L C O N F I G   ( P L A T F O R M   C O N F I G   I N F O )
00005 
00006 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
00007 
00008 
00014 #ifndef OSCLCONFIG_H_INCLUDED
00015 #define OSCLCONFIG_H_INCLUDED
00016 
00017 // system includes for dynamic registry
00018 #include <dirent.h>
00019 #include <dlfcn.h>
00020 
00021 #define OSCL_HAS_ANDROID_SUPPORT 1
00022 #define OSCL_HAS_ANDROID_FILE_IO_SUPPORT 1
00023 
00024 // include common include for determining sizes from limits.h
00025 #include "osclconfig_limits_typedefs.h"
00026 
00027 //This switch turns off some profiling and debug settings
00028 #ifdef NDEBUG
00029 #define OSCL_RELEASE_BUILD 1
00030 #else
00031 #define OSCL_RELEASE_BUILD 0
00032 #endif
00033 
00034 // include common unix definitions
00035 #include "osclconfig_unix_android.h"
00036 
00037 // define the suffix for unsigned constants
00038 #define OSCL_UNSIGNED_CONST(x) x##u
00039 
00040 // override the common definition for
00041 #undef OSCL_NATIVE_UINT64_TYPE
00042 #define OSCL_NATIVE_UINT64_TYPE    u_int64_t
00043 
00044 // include the definitions for the processor
00045 #include "osclconfig_ix86.h"
00046 
00047 // the syntax for explicitly calling the destructor varies on some platforms
00048 // below is the default syntax as defined by another ARM project
00049 #define OSCL_TEMPLATED_DESTRUCTOR_CALL(type,simple_type) ~type ()
00050 
00051 
00052 /* The __TFS__ macro is used to optionally expand to "<>" depending on the
00053  * compiler.  Some compilers require it to indicate that the friend function
00054  * is a template function as specified in the standard, but others don't
00055  * like it so it will handled with a macro expansion that depends on the
00056  * compiler.
00057  */
00058 #define __TFS__ <>
00059 
00060 #define OSCL_BEGIN_PACKED
00061 #define OSCL_PACKED_VAR(x)      x __attribute__((packed))
00062 #define OSCL_PACKED_STRUCT_BEGIN
00063 #define OSCL_PACKED_STRUCT_END  __attribute__((packed))
00064 #define OSCL_END_PACKED
00065 
00066 //set this to 1 to enable OSCL_ASSERT in release builds.
00067 #define OSCL_ASSERT_ALWAYS 0
00068 
00069 
00070 // check all osclconfig required macros are defined
00071 #include "osclconfig_check.h"
00072 
00073 #endif

OSCL API
Posting Version: OPENCORE_20090310