mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
Stop testing for never used SOCI_VISIBILITY_ATTRIBUTE_SUPPORTED
We always assume that visibility is supported under ELF platforms now,
see f90a1bf3 (Unconditionally set the visibility preset to hidden,
2025-02-06).
This commit is contained in:
@@ -84,7 +84,7 @@ namespace std {
|
||||
# define SOCI_DECL_IMPORT __declspec(dllimport)
|
||||
# endif
|
||||
|
||||
#elif defined(SOCI_HAVE_VISIBILITY_SUPPORT)
|
||||
#else
|
||||
# define SOCI_DECL_EXPORT __attribute__ (( visibility("default") ))
|
||||
# define SOCI_DECL_IMPORT __attribute__ (( visibility("default") ))
|
||||
#endif
|
||||
|
||||
@@ -18,18 +18,6 @@ check_type_size(long SOCI_SIZEOF_LONG LANGUAGE CXX)
|
||||
soci_are_types_same(TYPES "int64_t" "long" OUTPUT_VARIABLE SOCI_INT64_T_IS_LONG)
|
||||
soci_are_types_same(TYPES "int8_t" "char" OUTPUT_VARIABLE SOCI_INT8_T_IS_CHAR)
|
||||
|
||||
include(CheckCXXSourceCompiles)
|
||||
check_cxx_source_compiles(
|
||||
"
|
||||
__attribute__ (( visibility(\"default\") )) int f1() { return 0; }
|
||||
__attribute__ (( visibility(\"hidden\") )) int f2() { return 1; }
|
||||
|
||||
int main(int argc, char* argv[]) { f1(); f2(); return 0; }
|
||||
"
|
||||
SOCI_VISIBILITY_ATTRIBUTE_SUPPORTED
|
||||
)
|
||||
|
||||
|
||||
# Generate the soci-config.h file
|
||||
|
||||
set(CONFIG_LINES "#ifndef SOCI_SOCICONFIG_H_INCLUDED" "#define SOCI_SOCICONFIG_H_INCLUDED" "")
|
||||
@@ -43,7 +31,6 @@ set(CONFIG_VARS
|
||||
SOCI_ORACLE
|
||||
SOCI_POSTGRESQL
|
||||
SOCI_SQLITE3
|
||||
SOCI_VISIBILITY_ATTRIBUTE_SUPPORTED
|
||||
SOCI_SIZEOF_LONG
|
||||
SOCI_INT64_T_IS_LONG
|
||||
SOCI_INT8_T_IS_CHAR
|
||||
@@ -57,7 +44,6 @@ set(CONFIG_MACROS
|
||||
SOCI_HAVE_ORACLE
|
||||
SOCI_HAVE_POSTGRESQL
|
||||
SOCI_HAVE_SQLITE3
|
||||
SOCI_HAVE_VISIBILITY_SUPPORT
|
||||
SOCI_SIZEOF_LONG
|
||||
SOCI_INT64_T_IS_LONG
|
||||
SOCI_INT8_T_IS_CHAR
|
||||
|
||||
Reference in New Issue
Block a user