00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
00031 #include "pqxx/config-internal-compiler.h"
00032 #include "pqxx/libcompiler.h"
00033
00034
00035 #include "pqxx/config-internal-libpq.h"
00036
00037
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 template<> inline long numeric_limits<long>::max() throw () {return LONG_MAX;}
00053 template<> inline long numeric_limits<long>::min() throw () {return LONG_MIN;}
00054 }
00055 #endif // PQXX_HAVE_LIMITS
00056
00057 #endif
00058