18 #ifndef PQXX_H_COMPILER_INTERNAL
19 #define PQXX_H_COMPILER_INTERNAL
23 #include "pqxx/config-internal-compiler.h"
26 #include "pqxx/config-internal-libpq.h"
32 #define PQXX_LIBEXPORT __declspec(dllexport)
34 #define PQXX_PRIVATE __declspec()
38 #pragma warning (disable: 4251 4275 4273)
39 #pragma warning (disable: 4258) // Complains that for-scope usage is correct.
40 #pragma warning (disable: 4290)
41 #pragma warning (disable: 4351)
42 #pragma warning (disable: 4355)
43 #pragma warning (disable: 4786)
44 #pragma warning (disable: 4800) // Performance warning for boolean conversions.
45 #pragma warning (disable: 4996) // Complains that strncpy() "may" be unsafe.
48 #elif defined(__GNUC__) && defined(PQXX_HAVE_GCC_VISIBILITY) // !_WIN32
50 #define PQXX_LIBEXPORT __attribute__ ((visibility("default")))
51 #define PQXX_PRIVATE __attribute__ ((visibility("hidden")))
53 #endif // __GNUC__ && PQXX_HAVE_GCC_VISIBILITY
56 #include "pqxx/compiler-public.hxx"
60 #ifdef PQXX_HAVE_LIMITS
62 #else // PQXX_HAVE_LIMITS
69 static T max()
throw ();
70 static T min()
throw ();
75 #endif // PQXX_HAVE_LIMITS