Skip to content

fix(Foundation): Adjust standard header inclusion logic for VS2022 clang-cl compatibility#5165

Merged
matejk merged 1 commit intopocoproject:mainfrom
feihongmeilian:main
Jan 15, 2026
Merged

fix(Foundation): Adjust standard header inclusion logic for VS2022 clang-cl compatibility#5165
matejk merged 1 commit intopocoproject:mainfrom
feihongmeilian:main

Conversation

@feihongmeilian
Copy link
Copy Markdown
Contributor

Move and out of the POCO_HAVE_CXXABI_H conditional block — these are core C++ standard library headers and should not be tied to CXXABI detection logic.

Compilation with clang-cl (Visual Studio 2022) failed due to an undefined POCO_HAVE_CXXABI_H macro, which led to missing inclusion and subsequent "incomplete type 'const type_info'" errors. This change decouples standard headers from CXXABI checks to resolve the VS2022 clang-cl build issue.

…ang-cl compatibility

Move <typeinfo> and <cstdlib> out of the POCO_HAVE_CXXABI_H conditional block —
these are core C++ standard library headers and should not be tied to CXXABI detection logic.

Compilation with clang-cl (Visual Studio 2022) failed due to an undefined POCO_HAVE_CXXABI_H macro,
which led to missing <typeinfo> inclusion and subsequent "incomplete type 'const type_info'" errors.
This change decouples standard headers from CXXABI checks to resolve the VS2022 clang-cl build issue.
@matejk matejk added this to the Release 1.15.0 milestone Jan 15, 2026
@matejk matejk merged commit 8f134ff into pocoproject:main Jan 15, 2026
45 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.

3 participants