Skip to content

Conversation

@barche
Copy link
Contributor

@barche barche commented Nov 15, 2025

The use of __attribute__ in headers causes compile errors on MSVC, this PR removes these when compiling a program that includes Julia headers with MSVC.

The DECLSPEC_IMPORT macro is also defined by default on MSVC, so it is deactivated when in MSVC.

See the log starting here for an example of the errors.

@Keno Keno merged commit 89243d1 into JuliaLang:master Nov 15, 2025
8 checks passed
@KristofferC KristofferC added the backport 1.13 Change should be backported to release-1.13 label Feb 6, 2026
KristofferC pushed a commit that referenced this pull request Feb 6, 2026
The use of `__attribute__` in headers causes compile errors on MSVC,
this PR removes these when compiling a program that includes Julia
headers with MSVC.

The `DECLSPEC_IMPORT` macro is also defined by default on MSVC, so it is
deactivated when in MSVC.

See the [log starting
here](https://github.com/JuliaInterop/libcxxwrap-julia/actions/runs/19379560768/job/55455166299#step:4:60)
for an example of the errors.

(cherry picked from commit 89243d1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.13 Change should be backported to release-1.13

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants