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

Check for config.h before inclusion #3

Closed
wants to merge 1 commit into from
Closed

Check for config.h before inclusion #3

wants to merge 1 commit into from

Conversation

ivgiuliani
Copy link

Not doing so results in modbus.h not being includable into sources outside the libmodbus source tree

for HAVE_CONFIG_H before inclusion. Not doing this results in having the
system-wide installed library requiring config.h to be included even
though it isn't shipped together (and thus failing to compile every
program that depends on modbus.h and is outside its source tree).
@stephane
Copy link
Owner

It would be even better if we could remove the include of config.h, I haven't seen the problem until now because my projects (which use libmodbus) have a config.h in the root path and modbus.h uses the config.h of the application.

@stephane
Copy link
Owner

Thank you.
Fixed by e3f2c13

GerHobbelt pushed a commit to GerHobbelt/libmodbus that referenced this pull request Jun 21, 2024
This pull request was closed.
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