<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>libpst.so.4: libpst/common.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.3.9.1 --> <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</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></div> <div class="nav"> <a class="el" href="dir_000000.html">libpst</a></div> <h1>common.h</h1><a href="common_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 00002 <span class="preprocessor">#ifndef __PST_COMMON_H</span> 00003 <span class="preprocessor"></span><span class="preprocessor">#define __PST_COMMON_H</span> 00004 <span class="preprocessor"></span> 00005 00006 <span class="preprocessor">#include <stdlib.h></span> 00007 <span class="preprocessor">#include <stdio.h></span> 00008 <span class="preprocessor">#include <stdarg.h></span> 00009 <span class="preprocessor">#include <time.h></span> 00010 00011 00012 <span class="preprocessor">#ifndef _MSC_VER</span> 00013 <span class="preprocessor"></span><span class="preprocessor"> #include <stdint.h></span> 00014 <span class="preprocessor"> #include <inttypes.h></span> 00015 <span class="preprocessor">#else</span> 00016 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">char</span> int8_t; 00017 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> uint8_t; 00018 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> uint16_t; 00019 <span class="keyword">typedef</span> <span class="keywordtype">short</span> int16_t; 00020 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint32_t; 00021 <span class="keyword">typedef</span> <span class="keywordtype">int</span> int32_t; 00022 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> uint64_t; 00023 <span class="keyword">typedef</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> int64_t; 00024 <span class="preprocessor">#endif</span> 00025 <span class="preprocessor"></span> 00026 <span class="preprocessor">#ifndef _WIN32</span> <a name="l00027"></a><a class="code" href="structFILETIME.html">00027</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00028"></a><a class="code" href="structFILETIME.html#o0">00028</a> uint32_t dwLowDateTime; <a name="l00029"></a><a class="code" href="structFILETIME.html#o1">00029</a> uint32_t dwHighDateTime; 00030 } <a class="code" href="structFILETIME.html">FILETIME</a>; 00031 <span class="comment">// According to Jan Wolter, sys/param.h is the most portable source of endian</span> 00032 <span class="comment">// information on UNIX systems. see http://www.unixpapa.com/incnote/byteorder.html</span> 00033 <span class="preprocessor"> #include <sys/param.h></span> 00034 <span class="preprocessor">#else</span> 00035 <span class="preprocessor"></span><span class="preprocessor"> #include <windows.h></span> 00036 <span class="preprocessor">#endif</span> 00037 <span class="preprocessor"></span> 00038 <span class="preprocessor">#if defined(_WIN32) || defined(__DJGPP__)</span> 00039 <span class="preprocessor"></span><span class="preprocessor"> #ifndef LITTLE_ENDIAN</span> 00040 <span class="preprocessor"></span><span class="preprocessor"> #define LITTLE_ENDIAN 1234</span> 00041 <span class="preprocessor"></span><span class="preprocessor"> #endif</span> 00042 <span class="preprocessor"></span><span class="preprocessor"> #ifndef BIG_ENDIAN</span> 00043 <span class="preprocessor"></span><span class="preprocessor"> #define BIG_ENDIAN 4321</span> 00044 <span class="preprocessor"></span><span class="preprocessor"> #endif</span> 00045 <span class="preprocessor"></span><span class="preprocessor"> #define BYTE_ORDER LITTLE_ENDIAN</span> 00046 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 00047 <span class="preprocessor"></span> 00048 00049 <span class="preprocessor">#endif</span> </pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Sep 20 11:20:24 2009 for libpst.so.4 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address> </body> </html>