mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-15 14:30:13 +02:00
A few minor improvements when building with C++17
This commit is contained in:
parent
4482cb3e40
commit
5a1d284615
@ -1195,7 +1195,11 @@ namespace
|
||||
|
||||
// Find Min and Max points, as starting point
|
||||
HDRColorA X, Y;
|
||||
#if (__cplusplus >= 201703L)
|
||||
if constexpr (ishdr)
|
||||
#else
|
||||
if (ishdr)
|
||||
#endif
|
||||
{
|
||||
X = HDRColorA{ FLT_MAX, FLT_MAX, FLT_MAX, 0.0f };
|
||||
Y = HDRColorA{ -FLT_MAX, -FLT_MAX, -FLT_MAX, 0.0f };
|
||||
|
@ -3263,10 +3263,11 @@ void DirectX::Internal::ConvertScanline(
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if (__cplusplus >= 201703L)
|
||||
[[fallthrough]];
|
||||
#elif defined(_MSC_VER)
|
||||
__fallthrough;
|
||||
#endif
|
||||
#ifdef __clang__
|
||||
#elif defined(__clang__)
|
||||
[[clang::fallthrough]];
|
||||
#endif
|
||||
|
||||
@ -3552,10 +3553,11 @@ void DirectX::Internal::ConvertScanline(
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if (__cplusplus >= 201703L)
|
||||
[[fallthrough]];
|
||||
#elif defined(_MSC_VER)
|
||||
__fallthrough;
|
||||
#endif
|
||||
#ifdef __clang__
|
||||
#elif defined(__clang__)
|
||||
[[clang::fallthrough]];
|
||||
#endif
|
||||
|
||||
@ -3650,10 +3652,11 @@ void DirectX::Internal::ConvertScanline(
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if (__cplusplus >= 201703L)
|
||||
[[fallthrough]];
|
||||
#elif defined(_MSC_VER)
|
||||
__fallthrough;
|
||||
#endif
|
||||
#ifdef __clang__
|
||||
#elif defined(__clang__)
|
||||
[[clang::fallthrough]];
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user