diff --git a/aws-cpp-sdk-core/include/aws/core/utils/Array.h b/aws-cpp-sdk-core/include/aws/core/utils/Array.h index 1dbb902..1375884 100644 --- a/aws-cpp-sdk-core/include/aws/core/utils/Array.h +++ b/aws-cpp-sdk-core/include/aws/core/utils/Array.h @@ -24,11 +24,11 @@ #include #include -#ifdef _WIN32 +#ifdef _MSC_VER #include -#endif // _WIN32 +#endif // _MSC_VER namespace Aws { @@ -64,7 +64,7 @@ namespace Aws { m_data.reset(Aws::NewArray(m_size, ARRAY_ALLOCATION_TAG)); -#ifdef _WIN32 +#ifdef _MSC_VER std::copy(arrayToCopy, arrayToCopy + arraySize, stdext::checked_array_iterator< T * >(m_data.get(), m_size)); #else std::copy(arrayToCopy, arrayToCopy + arraySize, m_data.get()); @@ -92,7 +92,7 @@ namespace Aws if(arr->m_size > 0 && arr->m_data) { size_t arraySize = arr->m_size; -#ifdef _WIN32 +#ifdef _MSC_VER std::copy(arr->m_data.get(), arr->m_data.get() + arraySize, stdext::checked_array_iterator< T * >(m_data.get() + location, m_size)); #else std::copy(arr->m_data.get(), arr->m_data.get() + arraySize, m_data.get() + location); @@ -111,7 +111,7 @@ namespace Aws { m_data.reset(Aws::NewArray(m_size, ARRAY_ALLOCATION_TAG)); -#ifdef _WIN32 +#ifdef _MSC_VER std::copy(other.m_data.get(), other.m_data.get() + other.m_size, stdext::checked_array_iterator< T * >(m_data.get(), m_size)); #else std::copy(other.m_data.get(), other.m_data.get() + other.m_size, m_data.get()); @@ -144,7 +144,7 @@ namespace Aws { m_data.reset(Aws::NewArray(m_size, ARRAY_ALLOCATION_TAG)); -#ifdef _WIN32 +#ifdef _MSC_VER std::copy(other.m_data.get(), other.m_data.get() + other.m_size, stdext::checked_array_iterator< T * >(m_data.get(), m_size)); #else std::copy(other.m_data.get(), other.m_data.get() + other.m_size, m_data.get());