diff options
author | galaxycrab <UgnineSirdis@ydb.tech> | 2023-11-23 11:26:33 +0300 |
---|---|---|
committer | galaxycrab <UgnineSirdis@ydb.tech> | 2023-11-23 12:01:57 +0300 |
commit | 44354d0fc55926c1d4510d1d2c9c9f6a1a5e9300 (patch) | |
tree | cb4d75cd1c6dbc3da0ed927337fd8d1b6ed9da84 /contrib/libs/libpqxx/include/pqxx/compiler-internal.hxx | |
parent | 0e69bf615395fdd48ecee032faaec81bc468b0b8 (diff) | |
download | ydb-44354d0fc55926c1d4510d1d2c9c9f6a1a5e9300.tar.gz |
YQ Connector:test INNER JOIN
Diffstat (limited to 'contrib/libs/libpqxx/include/pqxx/compiler-internal.hxx')
-rw-r--r-- | contrib/libs/libpqxx/include/pqxx/compiler-internal.hxx | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/contrib/libs/libpqxx/include/pqxx/compiler-internal.hxx b/contrib/libs/libpqxx/include/pqxx/compiler-internal.hxx new file mode 100644 index 0000000000..9743f47866 --- /dev/null +++ b/contrib/libs/libpqxx/include/pqxx/compiler-internal.hxx @@ -0,0 +1,42 @@ +/** Compiler deficiency workarounds for compiling libpqxx itself. + * + * DO NOT INCLUDE THIS FILE when building client programs. + * + * Copyright (c) 2000-2019, Jeroen T. Vermeulen. + * + * See COPYING for copyright license. If you did not receive a file called + * COPYING with this source code, please notify the distributor of this mistake, + * or contact the author. + */ +#ifndef PQXX_H_COMPILER_INTERNAL +#define PQXX_H_COMPILER_INTERNAL + + +// Workarounds & definitions needed to compile libpqxx into a library +#include "pqxx/config-internal-compiler.h" + +#ifdef _WIN32 + +#ifdef PQXX_SHARED +#undef PQXX_LIBEXPORT +#define PQXX_LIBEXPORT __declspec(dllexport) +#define PQXX_PRIVATE __declspec() +#endif // PQXX_SHARED + +#ifdef _MSC_VER +#pragma warning (disable: 4251 4275 4273) +#pragma warning (disable: 4355) +#pragma warning (disable: 4996) // Deprecation warning, e.g. about strncpy(). +#endif + +#elif defined(__GNUC__) && defined(PQXX_HAVE_GCC_VISIBILITY) // !_WIN32 + +#define PQXX_LIBEXPORT __attribute__ ((visibility("default"))) +#define PQXX_PRIVATE __attribute__ ((visibility("hidden"))) + +#endif // __GNUC__ && PQXX_HAVE_GCC_VISIBILITY + + +#include "pqxx/compiler-public.hxx" + +#endif |