Kaydet (Commit) dc4467e9 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS sb59 (1.15.30); FILE MERGED

2006/08/29 11:44:28 sb 1.15.30.1: #i67487# Made code warning-free (wntmsci10).
üst 5a89d852
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: odbcconfig.cxx,v $ * $RCSfile: odbcconfig.cxx,v $
* *
* $Revision: 1.16 $ * $Revision: 1.17 $
* *
* last change: $Author: obo $ $Date: 2006-09-17 07:10:53 $ * last change: $Author: obo $ $Date: 2006-10-12 13:37:54 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -78,6 +78,14 @@ ...@@ -78,6 +78,14 @@
// so don't touch this // so don't touch this
#if defined(WIN) || defined(WNT) #if defined(WIN) || defined(WNT)
#define SQL_API __stdcall #define SQL_API __stdcall
// At least under some circumstances, the below #include <odbc/sqlext.h> re-
// defines SQL_API to an empty string, leading to a compiler warning on MSC; to
// not break the current behavior, this is worked around by locally disabling
// that warning:
#if defined _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4005)
#endif
#endif // defined(WIN) || defined(WNT) #endif // defined(WIN) || defined(WNT)
#ifdef SYSTEM_ODBC_HEADERS #ifdef SYSTEM_ODBC_HEADERS
...@@ -89,6 +97,9 @@ ...@@ -89,6 +97,9 @@
#endif #endif
#if defined(WIN) || defined(WNT) #if defined(WIN) || defined(WNT)
#if defined _MSC_VER
#pragma warning(pop)
#endif
#undef SQL_API #undef SQL_API
#define SQL_API __stdcall #define SQL_API __stdcall
#endif // defined(WIN) || defined(WNT) #endif // defined(WIN) || defined(WNT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment