diff --git a/Libraries/LibDraw/Painter.cpp b/Libraries/LibDraw/Painter.cpp index 6ba7a64e54f..1533f79c8fb 100644 --- a/Libraries/LibDraw/Painter.cpp +++ b/Libraries/LibDraw/Painter.cpp @@ -37,7 +37,17 @@ #include #include +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC optimize("O3") +#endif + +#ifndef ALWAYS_INLINE +#if __has_attribute(always_inline) +#define ALWAYS_INLINE __attribute__((always_inline)) +#else +#define ALWAYS_INLINE inline +#endif +#endif template static ALWAYS_INLINE Color get_pixel(const GraphicsBitmap& bitmap, int x, int y)