mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
19 lines
551 B
Diff
19 lines
551 B
Diff
--- src/s2/util/endian/endian.h 2023-05-14 04:29:12.000000000 +0800
|
|
+++ src/s2/util/endian/endian.h 2023-05-18 14:18:31.000000000 +0800
|
|
@@ -768,6 +768,7 @@
|
|
|
|
// Load/Store for bool. Sanitizes bool on the way in for safety.
|
|
|
|
+#if !(defined(__MACH__) && defined(__ppc__))
|
|
template<>
|
|
inline bool LittleEndian::Load<bool>(const char* p) {
|
|
static_assert(sizeof(bool) == 1, "Unexpected sizeof(bool)");
|
|
@@ -791,6 +792,7 @@
|
|
static_assert(sizeof(bool) == 1, "Unexpected sizeof(bool)");
|
|
*p = value ? 1 : 0;
|
|
}
|
|
+#endif
|
|
|
|
// Load/Store for float.
|
|
|