1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> 3 <title>osclconfig.h Source File</title> 4 <link href="doxygen.css" rel="stylesheet" type="text/css"> 5 </head><body> 6 <!-- Generated by Doxygen 1.2.18 --> 7 <center> 8 <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> 9 <hr><h1>osclconfig.h</h1><a href="osclconfig_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span> 10 00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 11 00003 12 00004 <span class="comment">// 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 )</span> 13 00005 14 00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 15 00007 16 00008 17 00014 <span class="preprocessor">#ifndef OSCLCONFIG_H_INCLUDED</span> 18 00015 <span class="preprocessor"></span><span class="preprocessor">#define OSCLCONFIG_H_INCLUDED</span> 19 00016 <span class="preprocessor"></span> 20 00017 <span class="comment">// system includes for dynamic registry</span> 21 00018 <span class="preprocessor">#include <dirent.h></span> 22 00019 <span class="preprocessor">#include <dlfcn.h></span> 23 00020 24 <a name="l00021"></a><a class="code" href="osclconfig_8h.html#a0">00021</a> <span class="preprocessor">#define OSCL_HAS_ANDROID_SUPPORT 1</span> 25 <a name="l00022"></a><a class="code" href="osclconfig_8h.html#a1">00022</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_HAS_ANDROID_FILE_IO_SUPPORT 1</span> 26 00023 <span class="preprocessor"></span> 27 00024 <span class="comment">// include common include for determining sizes from limits.h</span> 28 00025 <span class="preprocessor">#include "<a class="code" href="osclconfig__limits__typedefs_8h.html">osclconfig_limits_typedefs.h</a>"</span> 29 00026 30 00027 <span class="comment">//This switch turns off some profiling and debug settings</span> 31 00028 <span class="preprocessor">#ifdef NDEBUG</span> 32 00029 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_RELEASE_BUILD 1</span> 33 00030 <span class="preprocessor"></span><span class="preprocessor">#else</span> 34 <a name="l00031"></a><a class="code" href="osclconfig_8h.html#a2">00031</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_RELEASE_BUILD 0</span> 35 00032 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 36 00033 <span class="preprocessor"></span> 37 00034 <span class="comment">// include common unix definitions</span> 38 00035 <span class="preprocessor">#include "<a class="code" href="osclconfig__unix__android_8h.html">osclconfig_unix_android.h</a>"</span> 39 00036 40 00037 <span class="comment">// define the suffix for unsigned constants</span> 41 <a name="l00038"></a><a class="code" href="osclconfig_8h.html#a3">00038</a> <span class="preprocessor">#define OSCL_UNSIGNED_CONST(x) x##u</span> 42 00039 <span class="preprocessor"></span> 43 00040 <span class="comment">// override the common definition for</span> 44 00041 <span class="preprocessor">#undef OSCL_NATIVE_UINT64_TYPE</span> 45 <a name="l00042"></a><a class="code" href="osclconfig_8h.html#a4">00042</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_NATIVE_UINT64_TYPE u_int64_t</span> 46 00043 <span class="preprocessor"></span> 47 00044 <span class="comment">// include the definitions for the processor</span> 48 00045 <span class="preprocessor">#include "<a class="code" href="osclconfig__ix86_8h.html">osclconfig_ix86.h</a>"</span> 49 00046 50 00047 <span class="comment">// the syntax for explicitly calling the destructor varies on some platforms</span> 51 00048 <span class="comment">// below is the default syntax as defined by another ARM project</span> 52 <a name="l00049"></a><a class="code" href="osclconfig_8h.html#a5">00049</a> <span class="preprocessor">#define OSCL_TEMPLATED_DESTRUCTOR_CALL(type,simple_type) ~type ()</span> 53 00050 <span class="preprocessor"></span> 54 00051 55 00052 <span class="comment">/* The __TFS__ macro is used to optionally expand to "<>" depending on the</span> 56 00053 <span class="comment"> * compiler. Some compilers require it to indicate that the friend function</span> 57 00054 <span class="comment"> * is a template function as specified in the standard, but others don't</span> 58 00055 <span class="comment"> * like it so it will handled with a macro expansion that depends on the</span> 59 00056 <span class="comment"> * compiler.</span> 60 00057 <span class="comment"> */</span> 61 <a name="l00058"></a><a class="code" href="osclconfig_8h.html#a6">00058</a> <span class="preprocessor">#define __TFS__ <></span> 62 00059 <span class="preprocessor"></span> 63 <a name="l00060"></a><a class="code" href="osclconfig_8h.html#a7">00060</a> <span class="preprocessor">#define OSCL_BEGIN_PACKED</span> 64 <a name="l00061"></a><a class="code" href="osclconfig_8h.html#a8">00061</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_PACKED_VAR(x) x __attribute__((packed))</span> 65 <a name="l00062"></a><a class="code" href="osclconfig_8h.html#a9">00062</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_PACKED_STRUCT_BEGIN</span> 66 <a name="l00063"></a><a class="code" href="osclconfig_8h.html#a10">00063</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_PACKED_STRUCT_END __attribute__((packed))</span> 67 <a name="l00064"></a><a class="code" href="osclconfig_8h.html#a11">00064</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_END_PACKED</span> 68 00065 <span class="preprocessor"></span> 69 00066 <span class="comment">//set this to 1 to enable OSCL_ASSERT in release builds.</span> 70 <a name="l00067"></a><a class="code" href="group__osclconfig.html#a6">00067</a> <span class="preprocessor">#define OSCL_ASSERT_ALWAYS 0</span> 71 00068 <span class="preprocessor"></span> 72 00069 73 00070 <span class="comment">// check all osclconfig required macros are defined</span> 74 00071 <span class="preprocessor">#include "<a class="code" href="osclconfig__check_8h.html">osclconfig_check.h</a>"</span> 75 00072 76 00073 <span class="preprocessor">#endif</span> 77 </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 78 <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 79 </small></address> 80 </body> 81 </html> 82