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 #23

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

Conversation

woodz-
Copy link

@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
@SimonCahill
Copy link
Contributor

It seems this repo doesn't get much attention from its author any more. I'd be glad to include your change in my fork though, if you don't mind.

@woodz-
Copy link
Author

woodz- commented Sep 17, 2022

Sure

@SimonCahill
Copy link
Contributor

Branches have been merged

@woodz-
Copy link
Author

woodz- commented Oct 13, 2022

great, have you got a link to your fork?

@SimonCahill
Copy link
Contributor

https://github.com/SimonCahill/isotp-c <-- right there

driftregion pushed a commit to driftregion/isotp-c that referenced this pull request Aug 15, 2024
Moved link time build options out of compile time options
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