aboutsummaryrefslogtreecommitdiff
path: root/doc/oscl_html/osclconfig_8h_source.html
blob: 8eb22edf13feb607d1286c8b0f4e68d12d0f656b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>oscl: osclconfig.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>osclconfig.h</h1><a href="osclconfig_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- c++ -*-</span>
<a name="l00002"></a>00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
<a name="l00003"></a>00003 
<a name="l00004"></a>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>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef OSCLCONFIG_H_INCLUDED</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define OSCLCONFIG_H_INCLUDED</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="comment">// system includes for dynamic registry</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;dirent.h&gt;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;dlfcn.h&gt;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;fcntl.h&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;sys/types.h&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;sys/stat.h&gt;</span>
<a name="l00023"></a>00023 
<a name="l00024"></a><a class="code" href="osclconfig_8h.html#ad3bba711307efdf426617b50b196d2d5">00024</a> <span class="preprocessor">#define OSCL_HAS_ANDROID_SUPPORT 1</span>
<a name="l00025"></a><a class="code" href="osclconfig_8h.html#a0daa44c72109cd6a469df150defd721f">00025</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_HAS_ANDROID_FILE_IO_SUPPORT 1</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a><a class="code" href="osclconfig_8h.html#a665038e768ece73b351ebc4696735cfc">00027</a> <span class="preprocessor">#define OSCL_EXPORT_REF __attribute__ ((visibility(&quot;default&quot;)))</span>
<a name="l00028"></a><a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">00028</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_IMPORT_REF __attribute__ ((visibility(&quot;default&quot;)))</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span>
<a name="l00030"></a>00030 <span class="comment">// include common include for determining sizes from limits.h</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;<a class="code" href="osclconfig__limits__typedefs_8h.html" title="This file contains common typedefs based on the ANSI C limits.h header.">osclconfig_limits_typedefs.h</a>&quot;</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="comment">//This switch turns off some profiling and debug settings</span>
<a name="l00034"></a>00034 <span class="preprocessor">#ifndef OSCL_RELEASE_BUILD</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#ifdef NDEBUG</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_RELEASE_BUILD 1</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00038"></a><a class="code" href="osclconfig_8h.html#a7a0bc42452668c582a03d62e4e10b77e">00038</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_RELEASE_BUILD 0</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">#ifndef PVLOGGER_INST_LEVEL</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#if (OSCL_RELEASE_BUILD)</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="comment">//Release mode logging - should be kept minimum</span>
<a name="l00045"></a>00045 <span class="preprocessor">#define PVLOGGER_INST_LEVEL 1</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="comment">//full logging</span>
<a name="l00048"></a>00048 <span class="preprocessor">#define PVLOGGER_INST_LEVEL 5</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span>
<a name="l00052"></a>00052 <span class="comment">// include common unix definitions</span>
<a name="l00053"></a>00053 <span class="preprocessor">#include &quot;<a class="code" href="osclconfig__unix__android_8h.html">osclconfig_unix_android.h</a>&quot;</span>
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 <span class="comment">// define the suffix for unsigned constants</span>
<a name="l00056"></a><a class="code" href="osclconfig_8h.html#a1301b31080bd1b37e13c5d0dd5c3eef5">00056</a> <span class="preprocessor">#define OSCL_UNSIGNED_CONST(x) x##u</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span>
<a name="l00058"></a>00058 <span class="comment">// override the common definition for</span>
<a name="l00059"></a>00059 <span class="preprocessor">#undef OSCL_NATIVE_UINT64_TYPE</span>
<a name="l00060"></a><a class="code" href="osclconfig_8h.html#a6dba586a09c5c5966f9c3f159c608f1d">00060</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_NATIVE_UINT64_TYPE    u_int64_t</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span>
<a name="l00062"></a>00062 <span class="comment">// include the definitions for the processor</span>
<a name="l00063"></a>00063 <span class="preprocessor">#include &quot;<a class="code" href="osclconfig__ix86_8h.html" title="This file contains configuration information for the ix86 processor family.">osclconfig_ix86.h</a>&quot;</span>
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="comment">// the syntax for explicitly calling the destructor varies on some platforms</span>
<a name="l00066"></a>00066 <span class="comment">// below is the default syntax as defined by another ARM project</span>
<a name="l00067"></a><a class="code" href="osclconfig_8h.html#ae0b0d9c730b61c46736542624e6ccb45">00067</a> <span class="preprocessor">#define OSCL_TEMPLATED_DESTRUCTOR_CALL(type,simple_type) ~type ()</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span>
<a name="l00069"></a>00069 
<a name="l00070"></a>00070 <span class="comment">/* The __TFS__ macro is used to optionally expand to &quot;&lt;&gt;&quot; depending on the</span>
<a name="l00071"></a>00071 <span class="comment"> * compiler.  Some compilers require it to indicate that the friend function</span>
<a name="l00072"></a>00072 <span class="comment"> * is a template function as specified in the standard, but others don&#39;t</span>
<a name="l00073"></a>00073 <span class="comment"> * like it so it will handled with a macro expansion that depends on the</span>
<a name="l00074"></a>00074 <span class="comment"> * compiler.</span>
<a name="l00075"></a>00075 <span class="comment"> */</span>
<a name="l00076"></a><a class="code" href="osclconfig_8h.html#ad72dfe5c2e30417fce09817353341924">00076</a> <span class="preprocessor">#define __TFS__ &lt;&gt;</span>
<a name="l00077"></a>00077 <span class="preprocessor"></span>
<a name="l00078"></a><a class="code" href="osclconfig_8h.html#acd643f86f1e575deaa9ecd02701e70af">00078</a> <span class="preprocessor">#define OSCL_HAS_PRAGMA_PACK 0</span>
<a name="l00079"></a><a class="code" href="osclconfig_8h.html#afc34b69c535d620384864e12eeb0c20d">00079</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_HAS_PACKED_STRUCT 1</span>
<a name="l00080"></a><a class="code" href="osclconfig_8h.html#af0dc04d0cbacad5058c6d19ca7606e83">00080</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_PACKED_VAR(x)  x __attribute__((packed))</span>
<a name="l00081"></a><a class="code" href="osclconfig_8h.html#a9980590b51629522fe668bf74d59a0ae">00081</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_PACKED_STRUCT_BEGIN</span>
<a name="l00082"></a><a class="code" href="osclconfig_8h.html#ac087563a8a6371f7398af5a666eb846b">00082</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_PACKED_STRUCT_END  __attribute__((packed))</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span>
<a name="l00084"></a>00084 <span class="comment">//set this to 1 to enable OSCL_ASSERT in release builds.</span>
<a name="l00085"></a><a class="code" href="osclconfig_8h.html#a0a62250852608ebd3150f87e1ca105e0">00085</a> <span class="preprocessor">#define OSCL_ASSERT_ALWAYS 0</span>
<a name="l00086"></a>00086 <span class="preprocessor"></span>
<a name="l00087"></a>00087 
<a name="l00088"></a>00088 <span class="comment">// check all osclconfig required macros are defined</span>
<a name="l00089"></a>00089 <span class="preprocessor">#include &quot;<a class="code" href="osclconfig__check_8h.html">osclconfig_check.h</a>&quot;</span>
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: CORE_9.004.1.1 </small>
</small></address>
</body>
</html>