Skip to content

Conversation

@arghness
Copy link

@arghness arghness commented Dec 4, 2025

C++ does not allow passing u8* to functions with const char* parameters (e.g. stat(), open64(), strncpy()). This can not be fixed by disabling any warnings. Casting could be added for all of these, and to the caller of the FMAD API functions trying to pass const char* strings to u8* parameters, but taking in to account their use, this seemed more sensible.

Changed Path in fFMADRingHeader_t to be char (which is still guaranteed to be a single byte), for strncpy().

Fixed #7

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.

fmadio_packet.h does not compile with C++

1 participant