ports/archivers/snappy/patches/patch-snappy-stubs-internal_h

15 lines
436 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Don't set this for gcc, it keeps snappy from building
Index: snappy-stubs-internal.h
--- snappy-stubs-internal.h.orig
+++ snappy-stubs-internal.h
@@ -99,7 +99,7 @@
2023-10-12 04:10:54 +00:00
#endif // HAVE_BUILTIN_EXPECT
2023-08-16 22:26:55 +00:00
// Inlining hints.
2023-10-12 04:10:54 +00:00
-#if HAVE_ATTRIBUTE_ALWAYS_INLINE
2023-08-16 22:26:55 +00:00
+#if defined(HAVE_ATTRIBUTE_ALWAYS_INLINE) && defined(__clang__)
#define SNAPPY_ATTRIBUTE_ALWAYS_INLINE __attribute__((always_inline))
#else
#define SNAPPY_ATTRIBUTE_ALWAYS_INLINE