File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
aws-crt-kotlin/mingw/src/aws/sdk/kotlin/crt/util Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,13 @@ import aws.sdk.kotlin.crt.winver.*
88import kotlinx.cinterop.*
99import platform.posix.memcpy
1010
11+ // The following code is used to resolve the OS version on Windows machines.
12+ // This eventually ends up in aws-sdk-kotlin's User-Agent header.
13+ // It briefly lived in smithy-kotlin but was removed because it needs a MinGW installation to compile
14+ // FIXME Can we get the same information without all these API calls?
15+
1116// The functions below are adapted from C++ SDK:
1217// https://github.com/aws/aws-sdk-cpp/blob/0e6085bf0dd9a1cb1f27d101c4cf2db6ade6f307/src/aws-cpp-sdk-core/source/platform/windows/OSVersionInfo.cpp#L49-L106
13-
1418private val wordHexFormat = HexFormat {
1519 upperCase = false
1620 number {
You can’t perform that action at this time.
0 commit comments