diff --git a/configure.ac b/configure.ac index d51dd13..a048993 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,7 @@ if test -n "$GCC"; then fi dnl AC_PROG_LIBTOOL +AC_CHECK_SIZEOF(void*) AC_CHECK_SIZEOF(long) AC_CHECK_TYPES(long long) AC_CHECK_PROG(my_have_perl, perl, yes, no) diff --git a/project/driver/src/RetsENV.cpp b/project/driver/src/RetsENV.cpp index 002f45d..98a243c 100644 --- a/project/driver/src/RetsENV.cpp +++ b/project/driver/src/RetsENV.cpp @@ -21,7 +21,6 @@ #include "EzLogger.h" #include "StreamEzLogger.h" #include "str_stream.h" -#include /* Double casts such as: * foo = (SQLINTEGER) (SQLLEN) Value @@ -29,7 +28,6 @@ * we have in this file (and the others.) */ -namespace b = boost; using namespace odbcrets; RetsENV::RetsENV() : AbstractHandle(), mOdbcVersion(3) @@ -135,11 +133,11 @@ SQLRETURN RetsENV::SQLSetEnvAttr(SQLINTEGER Attribute, SQLPOINTER Value, switch (Attribute) { case SQL_ATTR_ODBC_VERSION: - mOdbcVersion = b::numeric_cast(reinterpret_cast(Value)); + mOdbcVersion = (SQLINTEGER) (SQLLEN) Value; break; case SQL_ATTR_OUTPUT_NTS: - if (b::numeric_cast(reinterpret_cast(Value)) == SQL_TRUE) + if ((SQLINTEGER) (SQLLEN) Value == SQL_TRUE) { break; }