Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

compiler.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  *   FILE
00004  *      pqxx/compiler.h
00005  *
00006  *   DESCRIPTION
00007  *      Compiler deficiency workarounds for compiling libpqxx itself.
00008  *      DO NOT INCLUDE THIS FILE when building client programs.
00009  *
00010  * Copyright (c) 2002-2005, Jeroen T. Vermeulen <jtv@xs4all.nl>
00011  *
00012  * See COPYING for copyright license.  If you did not receive a file called
00013  * COPYING with this source code, please notify the distributor of this mistake,
00014  * or contact the author.
00015  *
00016  *-------------------------------------------------------------------------
00017  */
00018 #ifndef PQXX_COMPILER_H
00019 #define PQXX_COMPILER_H
00020 
00021 
00022 #ifdef _WIN32
00023 #ifdef LIBPQXXDLL_EXPORTS
00024 #undef  PQXX_LIBEXPORT
00025 #define PQXX_LIBEXPORT __declspec(dllexport)
00026 #endif  // LIBPQXXDLL_EXPORTS
00027 #endif  // _WIN32
00028 
00029 
00030 // Workarounds & definitions needed to compile libpqxx into a library
00031 #include "pqxx/config-internal-compiler.h"
00032 #include "pqxx/libcompiler.h"
00033 
00034 // Library-private configuration related to libpq version
00035 #include "pqxx/config-internal-libpq.h"
00036 
00037 // Macros generated by autoconf/automake/libtool/...
00038 #include "pqxx/config-internal-autotools.h"
00039 
00040 #ifdef PQXX_HAVE_LIMITS
00041 #include <limits>
00042 #else // PQXX_HAVE_LIMITS
00043 #include <climits>
00044 namespace PGSTD
00045 {
00047 template<typename T> struct numeric_limits
00048 {
00049   static T max() throw ();
00050   static T min() throw ();
00051 };
00052 
00054 template<> inline long numeric_limits<long>::max() throw () {return LONG_MAX;}
00056 template<> inline long numeric_limits<long>::min() throw () {return LONG_MIN;}
00057 }
00058 #endif // PQXX_HAVE_LIMITS
00059 
00060 #endif
00061 

Generated on Mon Feb 28 10:24:56 2005 for libpqxx by  doxygen 1.4.1