|
| 1 | +--- src/Corrade/Cpu.h.orig 2023-05-22 12:04:59 UTC |
| 2 | ++++ src/Corrade/Cpu.h |
| 3 | +@@ -1357,7 +1357,7 @@ equivalent: |
| 4 | + */ |
| 5 | + template<class T> constexpr T tag() { return T{Implementation::Init}; } |
| 6 | + |
| 7 | +-#if defined(CORRADE_TARGET_ARM) && defined(__linux__) && !(defined(CORRADE_TARGET_ANDROID) && __ANDROID_API__ < 18) |
| 8 | ++#if defined(CORRADE_TARGET_ARM) && (defined(__linux__) && !(defined(CORRADE_TARGET_ANDROID) && __ANDROID_API__ < 18) || defined(__FreeBSD__)) |
| 9 | + namespace Implementation { |
| 10 | + /* Needed for a friend declaration, implementation is at the very end of |
| 11 | + the header */ |
| 12 | +@@ -1496,7 +1496,7 @@ class Features { |
| 13 | + #endif |
| 14 | + Features runtimeFeatures(); |
| 15 | + #endif |
| 16 | +- #if defined(CORRADE_TARGET_ARM) && defined(__linux__) && !(defined(CORRADE_TARGET_ANDROID) && __ANDROID_API__ < 18) |
| 17 | ++ #if defined(CORRADE_TARGET_ARM) && (defined(__linux__) && !(defined(CORRADE_TARGET_ANDROID) && __ANDROID_API__ < 18) || defined(__FreeBSD__)) |
| 18 | + friend Features Implementation::runtimeFeatures(unsigned long); |
| 19 | + #endif |
| 20 | + |
| 21 | +@@ -1775,7 +1775,7 @@ value is equal to @ref Scalar, which in turn is equiva |
| 22 | + default-constructed) @ref Features. |
| 23 | + @see @ref DefaultBase, @ref DefaultExtra, @ref Default |
| 24 | + */ |
| 25 | +-#if (defined(CORRADE_TARGET_X86) && (defined(CORRADE_TARGET_MSVC) || defined(CORRADE_TARGET_GCC))) || (defined(CORRADE_TARGET_ARM) && ((defined(__linux__) && !(defined(CORRADE_TARGET_ANDROID) && __ANDROID_API__ < 18)) || defined(CORRADE_TARGET_APPLE))) || defined(DOXYGEN_GENERATING_OUTPUT) |
| 26 | ++#if (defined(CORRADE_TARGET_X86) && (defined(CORRADE_TARGET_MSVC) || defined(CORRADE_TARGET_GCC))) || (defined(CORRADE_TARGET_ARM) && ((defined(__linux__) && !(defined(CORRADE_TARGET_ANDROID) && __ANDROID_API__ < 18)) || defined(CORRADE_TARGET_APPLE) || defined(__FreeBSD__))) || defined(DOXYGEN_GENERATING_OUTPUT) |
| 27 | + #ifdef CORRADE_TARGET_ARM |
| 28 | + CORRADE_UTILITY_EXPORT /* Inlined on x86 at the very end of the header */ |
| 29 | + #endif |
| 30 | +@@ -3214,7 +3214,7 @@ inline Features runtimeFeatures() { |
| 31 | + /** @todo If AT_HWCAP2 or other bits are needed, it's passed to ifunc resolvers |
| 32 | + only since glibc 2.30 (and Android API 30+, which is the same as before): |
| 33 | + https://github.com/bminor/glibc/commit/2b8a3c86e7606cf1b0a997dad8af2d45ae8989c3 */ |
| 34 | +-#if defined(CORRADE_TARGET_ARM) && defined(__linux__) && !(defined(CORRADE_TARGET_ANDROID) && __ANDROID_API__ < 18) |
| 35 | ++#if defined(CORRADE_TARGET_ARM) && (defined(__linux__) && !(defined(CORRADE_TARGET_ANDROID) && __ANDROID_API__ < 18) || defined(__FreeBSD__)) |
| 36 | + namespace Implementation { |
| 37 | + inline Features runtimeFeatures(const unsigned long caps) { |
| 38 | + unsigned int out = 0; |
0 commit comments