Skip to content

conformity on isotp_user.h#23

Open
woodz- wants to merge 1 commit into
lishen2:masterfrom
woodz-:woodz--conformity
Open

conformity on isotp_user.h#23
woodz- wants to merge 1 commit into
lishen2:masterfrom
woodz-:woodz--conformity

Conversation

@woodz-
Copy link
Copy Markdown

@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
Copy Markdown

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
Copy Markdown
Author

woodz- commented Sep 17, 2022

Sure

@SimonCahill
Copy link
Copy Markdown

Branches have been merged

@woodz-
Copy link
Copy Markdown
Author

woodz- commented Oct 13, 2022

great, have you got a link to your fork?

@SimonCahill
Copy link
Copy Markdown

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