summaryrefslogtreecommitdiff
path: root/AK/StdLibExtras.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/StdLibExtras.h')
-rw-r--r--AK/StdLibExtras.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/StdLibExtras.h b/AK/StdLibExtras.h
index 3c48af6e8f..2c834bb9b0 100644
--- a/AK/StdLibExtras.h
+++ b/AK/StdLibExtras.h
@@ -11,13 +11,13 @@
#include <AK/Types.h>
-#ifndef KERNEL
+#if defined(__serenity__) && !defined(KERNEL)
extern "C" void* mmx_memcpy(void* to, const void* from, size_t);
#endif
[[gnu::always_inline]] inline void fast_u32_copy(u32* dest, const u32* src, size_t count)
{
-#ifndef KERNEL
+#if defined(__serenity__) && !defined(KERNEL)
if (count >= 256) {
mmx_memcpy(dest, src, count * sizeof(count));
return;