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

Making cmake install jx9.h so that the Jx9 API is available to users #104

Closed
wants to merge 1 commit into from

Conversation

mdorier
Copy link
Contributor

@mdorier mdorier commented Apr 22, 2020

In some cases it may be needed to call jx9 functions (in my case jx9_lib_config). These functions are available in the library (the symbols are visible) but are not in the unqlite.h header. This PR makes cmake also install jx9.h. It also slightly modifies jx9.h to (1) define JX9_PRIVATE as empty if it's not defined already (needed for external users to be able to include jx9.h) and (2) add the proper extern "C" { } to make the header usable by C++ codes.

@symisc
Copy link
Owner

symisc commented Apr 23, 2020

Thanks for this PR Matthieu. Jx9 is available as independent implementation and can be downloaded (without the UnQLite core) at https://jx9.symisc.net

@mdorier
Copy link
Contributor Author

mdorier commented Apr 23, 2020

Thanks, indeed I could just install the jx9.h file that comes with thee jx9 distribution; it has the proper extern "C" {} and JX9_APIEXPORT instead of JX9_PRIVATE. I guess you can close this PR.

@symisc symisc closed this Apr 23, 2020
@symisc symisc linked an issue May 31, 2020 that may be closed by this pull request
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.

Custom mutex implementation (half) ignored by unqlite
2 participants