Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build when Z3_API macro is non-empty #7553

Merged

Conversation

pclayton
Copy link
Contributor

Z3 fails to build with VS 2022 when the macro Z3_API is defined as __stdcall due to differences between API function declarations and definitions. This PR updates function definitions to match declarations by

  • adding the Z3_API macro where missing;
  • changing Z3_API char const * to Z3_string Z3_API.

API function definitions are updated to be consistent with header files.
@pclayton
Copy link
Contributor Author

@microsoft-github-policy-service agree

@NikolajBjorner NikolajBjorner merged commit e6a089e into Z3Prover:master Feb 13, 2025
1 check passed
@pclayton pclayton deleted the fix-for-non-empty-z3-api-macro branch February 14, 2025 09:38
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