Files
macports-ports/math/s2geometry/files/patch-fix-build.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.