Skip to content

Conversation

@mikomikotaishi
Copy link
Contributor

@mikomikotaishi mikomikotaishi commented Aug 17, 2025

This pull request adds support for C++20 modules, as well as puts all symbols in the inlined namespace rtmidi. This change does not break any existing code, but allows symbols to be optionally accessed through the namespace rtmidi in addition to the global namespace. The module itself is imported using import rtmidi; and is enabled with the build macro RTMIDI_BUILD_MODULES.

Introducing modules to the project will not break any code, but is a benefit to users of C++20 and later who may wish to consume the library using modules rather than headers.

@mikomikotaishi
Copy link
Contributor Author

@garyscavone Is there anything you want me to address before this PR can be merged?

@mikomikotaishi
Copy link
Contributor Author

I think it might be worth looking in to having the inline namespace be optional, so with a compiler flag it could be a mandatory namespace for those who want the symbols strictly outside of the global namespace

@garyscavone garyscavone merged commit 2a6fb67 into thestk:master Oct 19, 2025
5 checks passed
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