Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't include sys/param.h for _BYTE_ORDER
It includes a bunch of other files including a lot of macros which can reduce the namespace available for actual protobuf. For example, create a protobuf with a member called SIGSEGV. Since macros cannot be namespaced in C++ this results in code which cannot be compiled. Fix this by just directly including endian.h
- Loading branch information
1 parent
e8906e4
commit a91adf1
Showing
2 changed files
with
9 additions
and
4 deletions.
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
a91adf1
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.
this commit breaks mingw-w64 gcc and mingw-w64 clang compilation as endian.h is not available but the macros are