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

Add js0n.h header guards and include js0n.h from js0n.c. #18

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

Conversation

sh0
Copy link

@sh0 sh0 commented Aug 7, 2020

Projects like pktriggercord and deriving from that, libgphoto2, are using js0n.[h,c] sources in their projects. Couple changes came up when doing cleanups on those projects.

First change is to add header guard 'JS0N_H' to js0n.h. This is generally standard practice and wouldn't hurt.

Secondly there is now an '#include "js0n.h"' statement in js0n.c. This is to quiet some compiler warnings about js0n(...) not being previously declared. While it shouldn't be necessary in theory, it shouldn't hurt either.

Projects like pktriggercord and deriving from that, libgphoto2, are using js0n.[h,c] sources in their projects. Couple changes came up when doing cleanups on those projects.

First change is to add header guard 'JS0N_H' to js0n.h. This is generally standard practice and wouldn't hurt.

Secondly there is now an '#include "js0n.h"' statement in js0n.c. This is to quiet some compiler warnings about js0n(...) not being previously declared. While it shouldn't be necessary in theory it shouldn't hurt either.
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