-
Notifications
You must be signed in to change notification settings - Fork 19
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
endian.h not found on macOS #15
Comments
Thank you, @EricFromCanada! Does Since this is just an optimization anyhow, I'm tempted to treat macOS the same as MSVC there, like this: -#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(__APPLE__)
#include <endian.h>
#endif Does this work? |
|
However, these are not the "underscored" versions that
Not, it defines those directly. That other file only defines the conversions.
But not on PowerPC. Overall, I'm tempted not to over-complicate this, and use the simpler patch I suggested above. The optimization would then continue to work for Linux and *BSDs. I guess large files would most commonly be processed with |
@EricFromCanada Can you please test this specific change? Thanks! |
Yes, that seems to work. |
The reference to <endian.h> in passwdqc_filter.h needs to be <machine/endian.h> for it to compile on macOS.
The text was updated successfully, but these errors were encountered: