Skip to content

Stop libpar2.h leaking config.h, _OPENMP and internal macros - #312

Open
mnightingale wants to merge 4 commits into
Parchive:masterfrom
mnightingale:pr/public-header
Open

Stop libpar2.h leaking config.h, _OPENMP and internal macros#312
mnightingale wants to merge 4 commits into
Parchive:masterfrom
mnightingale:pr/public-header

Conversation

@mnightingale

Copy link
Copy Markdown
Contributor

libpar2.h cannot currently be included from outside the build tree: it includes config.h, and the par2create/par2repair signatures change shape under #ifdef _OPENMP, so a consumer built without OpenMP does not match a library built with it. It also defines stricmp, PATHSEP and _FILE_THREADS into the including translation unit.

The integer types now come from <cstdint>, the entry points always take the thread counts, and the macros move to the private header. No behaviour change.

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