-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[tinyspline/0.5.0]: Make tinyspline's JSON support optional #12924
Conversation
Tinyspline's parson (json lib) it's using the same function name as json-c which makes it impossible to use both libs (statically) in the same project.
-#include "parson.h" /* serialization */ | ||
+ | ||
+#ifndef NO_JSON | ||
+# include "parson.c" /* serialization */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SpaceIm here, I'm including parson.c
instead of parson.h
therefore it's not needed anymore in CMakeLists.txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not very elegant and more work for future maintainers if we want to unvendor parson in another PR.
Thank you for your contribution, let's wait for the upstream review. Maybe the author asks something, before approving your patch. |
All green in build 1 ( |
OP was not in favor of this new features As interesting as this improvement is, we can not accept it |
NP :) |
Tinyspline's parson (json lib) it's using the same function name as json-c which makes it impossible to use both libs (statically) in the same project.
Bug & patch upstreamed msteinbeck/tinyspline#215 msteinbeck/tinyspline#216
This is also a good place to share with all of us why you are submitting this PR (specially if it is a new addition to ConanCenter): is it a dependency of other libraries you want to package? Are you the author of the library? Thanks!