head	1.1;
access;
symbols
	REL7_3_STABLE:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2002.08.10.21.03.36;	author jtv;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Added Ray Dassen's Debian stuff, autoconf updates, and .cvsignore files;
added doxygen-generated reference documentation
@
text
@<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>compiler.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.16 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>compiler.h</h1><a href="compiler_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*-------------------------------------------------------------------------</font>
00002 <font class="comment"> *</font>
00003 <font class="comment"> *   FILE</font>
00004 <font class="comment"> *      pqxx/compiler.h</font>
00005 <font class="comment"> *</font>
00006 <font class="comment"> *   DESCRIPTION</font>
00007 <font class="comment"> *      Compiler deficiency workarounds</font>
00008 <font class="comment"> *</font>
00009 <font class="comment"> * Copyright (c) 2002, Jeroen T. Vermeulen &lt;jtv@@xs4all.nl&gt;</font>
00010 <font class="comment"> *</font>
00011 <font class="comment"> *-------------------------------------------------------------------------</font>
00012 <font class="comment"> */</font>
00013 <font class="preprocessor">#ifndef PQXX_COMPILER_H</font>
00014 <font class="preprocessor"></font><font class="preprocessor">#define PQXX_COMPILER_H</font>
00015 <font class="preprocessor"></font>
00016 <font class="preprocessor">#include "<a class="code" href="config_8h.html">pqxx/config.h</a>"</font>
00017 
00018 <font class="preprocessor">#ifdef BROKEN_ITERATOR</font>
00019 <font class="preprocessor"></font><font class="keyword">namespace </font><a class="code" href="config_8h.html#a21">PGSTD</a>
00020 {
00022 <font class="keyword">template</font>&lt;<font class="keyword">typename</font> Cat, 
00023          <font class="keyword">typename</font> T, 
00024          <font class="keyword">typename</font> Dist, 
00025          <font class="keyword">typename</font> Ptr=T*,
00026          <font class="keyword">typename</font> Ref=T&amp;&gt; <font class="keyword">struct </font>iterator
00027 {
00028   <font class="keyword">typedef</font> Cat iterator_category;
00029   <font class="keyword">typedef</font> T value_type;
00030   <font class="keyword">typedef</font> Dist difference_type;
00031   <font class="keyword">typedef</font> Ptr pointer;
00032   <font class="keyword">typedef</font> Ref reference;
00033 };
00034 }
00035 <font class="preprocessor">#else</font>
00036 <font class="preprocessor"></font><font class="preprocessor">#include &lt;iterator&gt;</font>
00037 <font class="preprocessor">#endif // BROKEN_ITERATOR</font>
00038 <font class="preprocessor"></font>
00039 
00040 <font class="preprocessor">#ifdef HAVE_LIMITS</font>
00041 <font class="preprocessor"></font><font class="preprocessor">#include &lt;limits&gt;</font>
00042 <font class="preprocessor">#else // HAVE_LIMITS</font>
00043 <font class="preprocessor"></font><font class="preprocessor">#include &lt;climits&gt;</font>
<a name="l00044"></a><a class="code" href="namespacePGSTD.html">00044</a> <font class="keyword">namespace </font><a class="code" href="config_8h.html#a21">PGSTD</a>
00045 {
<a name="l00047"></a><a class="code" href="structPGSTD_1_1numeric__limits.html">00047</a> <font class="keyword">template</font>&lt;<font class="keyword">typename</font> T&gt; <font class="keyword">struct </font><a class="code" href="structPGSTD_1_1numeric__limits.html">numeric_limits</a>
00048 {
00049   <font class="keyword">static</font> T <a class="code" href="structPGSTD_1_1numeric__limits.html#d0">max</a>() <font class="keywordflow">throw</font> ();
00050   <font class="keyword">static</font> T <a class="code" href="structPGSTD_1_1numeric__limits.html#d1">min</a>() <font class="keywordflow">throw</font> ();
00051 };
00052 
<a name="l00053"></a><a class="code" href="structPGSTD_1_1numeric__limits.html#d0">00053</a> <font class="keyword">template</font>&lt;&gt; <font class="keyword">inline</font> <font class="keywordtype">long</font> <a class="code" href="structPGSTD_1_1numeric__limits.html">numeric_limits&lt;long&gt;::max</a>() <font class="keywordflow">throw</font> () {<font class="keywordflow">return</font> LONG_MAX;}
<a name="l00054"></a><a class="code" href="structPGSTD_1_1numeric__limits.html#d1">00054</a> <font class="keyword">template</font>&lt;&gt; <font class="keyword">inline</font> <font class="keywordtype">long</font> <a class="code" href="structPGSTD_1_1numeric__limits.html">numeric_limits&lt;long&gt;::min</a>() <font class="keywordflow">throw</font> () {<font class="keywordflow">return</font> LONG_MIN;}
00055 }
00056 <font class="preprocessor">#endif // HAVE_LIMITS</font>
00057 <font class="preprocessor"></font>
00058 
00059 <font class="comment">// Used for Windows DLL</font>
<a name="l00060"></a><a class="code" href="compiler_8h.html#a0">00060</a> <font class="preprocessor">#define PQXX_LIBEXPORT</font>
00061 <font class="preprocessor"></font>
00062 
00063 <font class="preprocessor">#ifdef _MSC_VER</font>
00064 <font class="preprocessor"></font><font class="comment">// Microsoft Visual C++ likes to complain about long debug symbols, which</font>
00065 <font class="comment">// are a fact of life in modern C++.  Silence the warning.</font>
00066 <font class="preprocessor">#pragma warning (disable: 4786)</font>
00067 <font class="preprocessor"></font>
00068 <font class="comment">// Compiler doesn't know if it is import or export</font>
00069 <font class="preprocessor">#pragma warning (disable: 4251 4275)</font>
00070 <font class="preprocessor"></font>
00071 <font class="comment">// Link to libpq</font>
00072 <font class="preprocessor">#pragma comment(lib, "libpqdll")</font>
00073 <font class="preprocessor"></font>
00074 <font class="preprocessor">#undef PQXX_LIBEXPORT</font>
00075 <font class="preprocessor"></font><font class="preprocessor">#ifndef LIBPQXXDLL_EXPORTS      // Defined in Makefile</font>
00076 <font class="preprocessor"></font><font class="preprocessor">#define PQXX_LIBEXPORT __declspec(dllimport)</font>
00077 <font class="preprocessor"></font><font class="preprocessor">#else</font>
00078 <font class="preprocessor"></font><font class="preprocessor">#define PQXX_LIBEXPORT __declspec(dllexport)</font>
00079 <font class="preprocessor"></font><font class="preprocessor">#endif  // LIBPQXXDLL_EXPORTS</font>
00080 <font class="preprocessor"></font>
00081 <font class="preprocessor">#endif  // _MSC_VER</font>
00082 <font class="preprocessor"></font>
00083 
00084 <font class="preprocessor">#endif</font>
00085 <font class="preprocessor"></font>
</pre></div><hr><address align="right"><small>Generated on Sat Aug 10 21:52:37 2002 for libpqxx by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.16 </small></address>
</body>
</html>
@
