gaurded strsafe header

This commit is contained in:
Hadis Kakanejadi Fard 2017-01-25 14:05:08 -08:00
parent 2bd81f9e54
commit 3bd848d58a
2 changed files with 6 additions and 2 deletions

View file

@ -145,11 +145,14 @@ OACR_WARNING_POP
#include <algorithm>
#include <limits>
#include <cassert>
#include <strsafe.h>
#include <memory>
// included for SQL Server specific constants
#include "msodbcsql.h"
#ifdef _WIN32
#include <strsafe.h>
#endif // _WIN32
//*********************************************************************************************************************************
// Constants and Types
//*********************************************************************************************************************************

View file

@ -228,10 +228,11 @@ typedef windowsULongLong_t ULONGLONG;
/* can be defined in php sources */
#ifdef ODBCVER
#undef ODBCVER
#endif
// Build the mplat driver as an ODBC 3.8 driver, so that all of the
// source code shared with Windows SNAC (which is ODBC 3.8) compiles.
#define ODBCVER 0x0380
#endif
// Define this to indicate that we provide our own definitions for Windows types