From 5a2208b2dbac9d929245c8d4500986ae52184a92 Mon Sep 17 00:00:00 2001 From: "Keith T. Garner" Date: Tue, 18 Jan 2011 19:21:21 +0000 Subject: [PATCH] Rollback the code that wasn't needed and fixed the real problem of the configure script missing checking the size of void* git-svn-id: https://code.crt.realtors.org/svn/odbcretsdrv/ezrets/trunk@1392 fe7ac059-47f5-0310-8599-d0339b4e125c --- configure.ac | 1 + project/driver/src/RetsENV.cpp | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) 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; }