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

Version macros in C API #441

Open
Zipdox2 opened this issue Oct 4, 2024 · 0 comments
Open

Version macros in C API #441

Zipdox2 opened this issue Oct 4, 2024 · 0 comments

Comments

@Zipdox2
Copy link

Zipdox2 commented Oct 4, 2024

Version 6.0 broke compatibility with my C code because of an enum change. I wanted to use a macro to make my code compatible with both the old and the new version but apparently the version macros RTAUDIO_VERSION_MAJOR, RTAUDIO_VERSION_MINOR, etc are only available in the C++ API. The only solution I can think of now is using the build system to detect the version and supply a macro to the compiler.

I would prefer that the C version also gets version macros.

@Zipdox2 Zipdox2 changed the title Version macro in C API Version macros in C API Oct 4, 2024
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

No branches or pull requests

1 participant