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

conformity on isotp_user.h #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

conformity on isotp_user.h #1

wants to merge 1 commit into from

Conversation

woodz-
Copy link
Owner

@woodz- woodz- commented Feb 25, 2022

To be able to compile with C++ compilers, it's common practice to offer extern "C" on a makro basis. All C-based system includes of Linux do so. I suggest to do it likewise here.

Another thing is to #include <stdint.h>. The problem is that some compilers often automatically export names defined in various headers or provided types before such standards were in place.
Details can be found here: https://stackoverflow.com/questions/11069108/uint32-t-does-not-name-a-type

To be able to compile with C++ compilers, it's common practice to offer extern "C" on a makro basis. All C-based system includes of Linux do so. I suggest to do it likewise here.

Another thing is to `#include <stdint.h>`. The problem is that some compilers often automatically export names defined in various headers or provided types before such standards were in place.
Details can be found here: https://stackoverflow.com/questions/11069108/uint32-t-does-not-name-a-type
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