-
Notifications
You must be signed in to change notification settings - Fork 278
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 check from runtime to compile time #2668
Conversation
Signed-off-by: Rosen Penev <[email protected]>
We're not on C++20 yet, are we? It's a shame we can't use |
Codecov Report
@@ Coverage Diff @@
## main #2668 +/- ##
==========================================
- Coverage 63.92% 63.92% -0.01%
==========================================
Files 103 103
Lines 22306 22305 -1
Branches 10795 10795
==========================================
- Hits 14259 14258 -1
Misses 5826 5826
Partials 2221 2221
|
std::endian requires the minimum compiler to be bumped. Exiv2 can still be compiled with gcc7. |
FYI the oldest non-EOL ubuntu version ships with |
Backport to 0.28.x? |
Also, might be better to use compiler defined |
That would only help with MinGW AFAIK. ORDER_BIG_ENDIAN is a GCC macro. |
And Clang as well, at least. Where does |
GCC and clang. |
My GCC and Clang have only the variants with two underscores at the end 🤷 |
No description provided.