<!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>OGR: cpl_port.h File Reference</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.2-20100208 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_9403295bfc17f2c2ba80cf17b83e4de3.html">port</a> </div> </div> <div class="contents"> <h1>cpl_port.h File Reference</h1><code>#include "cpl_config.h"</code><br/> <code>#include <stdio.h></code><br/> <code>#include <stdlib.h></code><br/> <code>#include <math.h></code><br/> <code>#include <stdarg.h></code><br/> <code>#include <string.h></code><br/> <code>#include <ctype.h></code><br/> <code>#include <limits.h></code><br/> <code>#include <time.h></code><br/> <code>#include <errno.h></code><br/> <code>#include <locale.h></code><br/> <p><a href="cpl__port_8h_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Defines</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="cpl__port_8h.html#a755da5fa59538492400a5bd307c031a1">CPL_LSBINT16PTR</a>(x) ((*(GByte*)(x)) | ((*(GByte*)((x)+1)) << 8))</td></tr> <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="cpl__port_8h.html#af72e1057b319104ad747034145ec37ec">CPL_LSBINT32PTR</a>(x)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Core portability definitions for CPL. </p> <hr/><h2>Define Documentation</h2> <a class="anchor" id="a755da5fa59538492400a5bd307c031a1"></a><!-- doxytag: member="cpl_port.h::CPL_LSBINT16PTR" ref="a755da5fa59538492400a5bd307c031a1" args="(x)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define CPL_LSBINT16PTR</td> <td>(</td> <td class="paramtype">x </td> <td class="paramname"></td> <td> ) </td> <td> ((*(GByte*)(x)) | ((*(GByte*)((x)+1)) << 8))</td> </tr> </table> </div> <div class="memdoc"> <p>Return a Int16 from the 2 bytes ordered in LSB order at address x </p> </div> </div> <a class="anchor" id="af72e1057b319104ad747034145ec37ec"></a><!-- doxytag: member="cpl_port.h::CPL_LSBINT32PTR" ref="af72e1057b319104ad747034145ec37ec" args="(x)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define CPL_LSBINT32PTR</td> <td>(</td> <td class="paramtype">x </td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <b>Value:</b><div class="fragment"><pre class="fragment">((*(GByte*)(x)) | ((*(GByte*)((x)+1)) << 8) | \ ((*(GByte*)((x)+2)) << 16) | ((*(GByte*)((x)+3)) << 24)) </pre></div><p>Return a Int32 from the 4 bytes ordered in LSB order at address x </p> </div> </div> </div> <hr> Generated for GDAL by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.6.2-20100208. </body> </html>