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> 1000002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 1100003 1200004 <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> 1300005 1400006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 1500007 1600008 1700014 <span class="preprocessor">#ifndef OSCLCONFIG_H_INCLUDED</span> 1800015 <span class="preprocessor"></span><span class="preprocessor">#define OSCLCONFIG_H_INCLUDED</span> 1900016 <span class="preprocessor"></span> 2000017 <span class="comment">// system includes for dynamic registry</span> 2100018 <span class="preprocessor">#include <dirent.h></span> 2200019 <span class="preprocessor">#include <dlfcn.h></span> 2300020 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> 2600023 <span class="preprocessor"></span> 2700024 <span class="comment">// include common include for determining sizes from limits.h</span> 2800025 <span class="preprocessor">#include "<a class="code" href="osclconfig__limits__typedefs_8h.html">osclconfig_limits_typedefs.h</a>"</span> 2900026 3000027 <span class="comment">//This switch turns off some profiling and debug settings</span> 3100028 <span class="preprocessor">#ifdef NDEBUG</span> 3200029 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_RELEASE_BUILD 1</span> 3300030 <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> 3500032 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 3600033 <span class="preprocessor"></span> 3700034 <span class="comment">// include common unix definitions</span> 3800035 <span class="preprocessor">#include "<a class="code" href="osclconfig__unix__android_8h.html">osclconfig_unix_android.h</a>"</span> 3900036 4000037 <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> 4200039 <span class="preprocessor"></span> 4300040 <span class="comment">// override the common definition for</span> 4400041 <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> 4600043 <span class="preprocessor"></span> 4700044 <span class="comment">// include the definitions for the processor</span> 4800045 <span class="preprocessor">#include "<a class="code" href="osclconfig__ix86_8h.html">osclconfig_ix86.h</a>"</span> 4900046 5000047 <span class="comment">// the syntax for explicitly calling the destructor varies on some platforms</span> 5100048 <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> 5300050 <span class="preprocessor"></span> 5400051 5500052 <span class="comment">/* The __TFS__ macro is used to optionally expand to "<>" depending on the</span> 5600053 <span class="comment"> * compiler. Some compilers require it to indicate that the friend function</span> 5700054 <span class="comment"> * is a template function as specified in the standard, but others don't</span> 5800055 <span class="comment"> * like it so it will handled with a macro expansion that depends on the</span> 5900056 <span class="comment"> * compiler.</span> 6000057 <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> 6200059 <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> 6800065 <span class="preprocessor"></span> 6900066 <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> 7100068 <span class="preprocessor"></span> 7200069 7300070 <span class="comment">// check all osclconfig required macros are defined</span> 7400071 <span class="preprocessor">#include "<a class="code" href="osclconfig__check_8h.html">osclconfig_check.h</a>"</span> 7500072 7600073 <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