-
Notifications
You must be signed in to change notification settings - Fork 52
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
Support FreeBSD 14.0 + NetBSD 10.0 + add testing #74
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6247204
Try building something with FreeBSD 14.0 qemu action
GreyCat bb1a6f9
Try actual build with cmake
GreyCat 6a44911
Add googletest for installation
GreyCat bf75eb9
Add NetBSD 10.0 run
GreyCat 6e0ece3
NetBSD build: remove extra debug print, add compiler comment
GreyCat 17b3a25
Attempt to work around NetBSD build problem
GreyCat c3bae0f
Another try to detect BSD properly
GreyCat 26a141a
Try NetBSD with __BYTE_ORDER / __BIG_ENDIAN / __LITTLE_ENDIAN defines
GreyCat 44bce3e
Add workaround for FreeBSD+NetBSD CITRUS iconv, skipping test
GreyCat 7b4c29a
Fix sys/param.h problem on Windows
GreyCat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@GreyCat I suspect this isn't actually necessary since you're only using the
__FreeBSD__
and__NetBSD__
macros, not theBSD
macro which indeed requires#include <sys/param.h>
: https://sourceforge.net/p/predef/wiki/OperatingSystems/#bsd-environmentI think this unnecessary include should be removed. For now, I guess this condition is fine, because the test exclusions should be minimal and these are the only BSD variants that we know are problematic:
kaitai_struct_cpp_stl_runtime/tests/unittest.cpp
Line 383 in 7b4c29a
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.
I recall in my testing that it actually required that include, but maybe I've indeed got something crossed, so if you have an idea what we can eliminate/optimize here — absolutely feel free to go ahead and change :)
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.
I think (at least I haven't seen any single reference on the internet that would suggest otherwise) that
sys/param.h
only definesBSD
(see FreeBSD'ssys/param.h
, NetBSD'ssys/param.h
), whereas__FreeBSD__
and__NetBSD__
are predefined macros by the compiler, so you don't need to include anything to use them.