Skip to content

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
arbipher pushed a commit to arbipher/z3 that referenced this pull request Apr 17, 2025
API function definitions are updated to be consistent with header files.
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