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

Revert "extensions: avoid useless duplication of headers" #368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nerixyz
Copy link

@Nerixyz Nerixyz commented Dec 22, 2024

This reverts commit e08c552 from #289.

The headers aren't duplicated on Windows and CYGWIN. There, CMARK_GFM_EXTENSIONS_EXPORT resolves to __declspec(dllexport) and __declspec(dllimport) depending on whether the dynamic library is built or used. Since cmark-gfm-extensions is a separate shared library, it needs a separate header (it needs to import the stuff from cmark-gfm and export its own things). This can't be done with one exports header from CMake.

This reverts commit e08c552.
The headers aren't duplicated on Windows and CYGWIN.
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.

1 participant