Skip to content

fix(platform): Add Clang support for 64-bit integer types on Windows#19

Merged
OmniBlade merged 1 commit into
TheAssemblyArmada:masterfrom
JohnsterID:fix/clang-mingw-64bit-types
Mar 18, 2026
Merged

fix(platform): Add Clang support for 64-bit integer types on Windows#19
OmniBlade merged 1 commit into
TheAssemblyArmada:masterfrom
JohnsterID:fix/clang-mingw-64bit-types

Conversation

@JohnsterID

Copy link
Copy Markdown
Contributor

Clang with MinGW target defines _WIN32 but neither _M_IX86 (MSVC-specific) nor _INTEGRAL_MAX_BITS (GCC-specific), causing gsi_i64/gsi_u64 to be undefined when building with Clang cross-compiling for Windows.

Add clang check to the preprocessor condition to enable 64-bit integer types when using Clang on Windows targets.

Clang with MinGW target defines _WIN32 but neither _M_IX86 (MSVC-specific)
nor _INTEGRAL_MAX_BITS (GCC-specific), causing gsi_i64/gsi_u64 to be
undefined when building with Clang cross-compiling for Windows.

Add __clang__ check to the preprocessor condition to enable 64-bit
integer types when using Clang on Windows targets.
@OmniBlade
OmniBlade merged commit b1b77d8 into TheAssemblyArmada:master Mar 18, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants