Changeset: 7763c63b4b93 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/7763c63b4b93 Modified Files: clients/odbc/driver/CMakeLists.txt clients/odbc/driver/ODBCGlobal.h clients/odbc/setup/drvcfg.h clients/odbc/winsetup/setup.c Branch: default Log Message:
The ODBC driver does not use __declspec, it uses a .def file instead. diffs (77 lines): diff --git a/clients/odbc/driver/CMakeLists.txt b/clients/odbc/driver/CMakeLists.txt --- a/clients/odbc/driver/CMakeLists.txt +++ b/clients/odbc/driver/CMakeLists.txt @@ -124,10 +124,6 @@ target_include_directories(MonetODBC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/monetdb>) -target_compile_definitions(MonetODBC - PRIVATE - LIBMONETODBCS) - target_link_libraries(MonetODBC PRIVATE monetdb_config_header diff --git a/clients/odbc/driver/ODBCGlobal.h b/clients/odbc/driver/ODBCGlobal.h --- a/clients/odbc/driver/ODBCGlobal.h +++ b/clients/odbc/driver/ODBCGlobal.h @@ -49,16 +49,6 @@ #define ODBCDEBUG 1 -#ifdef WIN32 -#ifndef LIBMONETODBC -#define odbc_export extern __declspec(dllimport) -#else -#define odbc_export extern __declspec(dllexport) -#endif -#else -#define odbc_export extern -#endif - /* standard ODBC driver include files */ #include <sqltypes.h> /* ODBC C typedefs */ /* Note: sqlext.h includes sql.h so it is not needed here to be included */ diff --git a/clients/odbc/setup/drvcfg.h b/clients/odbc/setup/drvcfg.h --- a/clients/odbc/setup/drvcfg.h +++ b/clients/odbc/setup/drvcfg.h @@ -32,16 +32,6 @@ #define ODBCVER 0x0351 -#ifdef WIN32 -#ifndef LIBMONETODBCS -#define odbc_export extern __declspec(dllimport) -#else -#define odbc_export extern __declspec(dllexport) -#endif -#else -#define odbc_export extern -#endif - #include <odbcinst.h> /******************************************************** @@ -148,7 +138,7 @@ extern "C" { #endif /* ONLY IMPLEMENTED IN DRIVER SETUP (not in ODBCINST) */ - odbc_export int ODBCINSTGetProperties(HODBCINSTPROPERTY hFirstProperty); + extern int ODBCINSTGetProperties(HODBCINSTPROPERTY hFirstProperty); #if defined(__cplusplus) } diff --git a/clients/odbc/winsetup/setup.c b/clients/odbc/winsetup/setup.c --- a/clients/odbc/winsetup/setup.c +++ b/clients/odbc/winsetup/setup.c @@ -22,10 +22,6 @@ #define ALREADY_HAVE_WINDOWS_TYPE 1 #include <sql.h> #include <sqlext.h> -#ifdef EXPORT -#undef EXPORT -#endif -#define EXPORT __declspec(dllexport) #include <odbcinst.h> #include "resource.h" _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org