From e940d4b07b2763d70c3c22a319f75edc653a240a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 25 Jul 2019 11:47:53 +0200 Subject: [PATCH] LibCore: Only build CThread on Serenity platforms. --- Libraries/LibCore/CThread.cpp | 4 ++++ Libraries/LibCore/CThread.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/Libraries/LibCore/CThread.cpp b/Libraries/LibCore/CThread.cpp index ec51581fef..59663f06a3 100644 --- a/Libraries/LibCore/CThread.cpp +++ b/Libraries/LibCore/CThread.cpp @@ -1,3 +1,5 @@ +#ifdef __serenity__ + #include #include #include @@ -27,3 +29,5 @@ CThread::CThread(int (*entry)(void*), void* user_data) CThread::~CThread() { } + +#endif diff --git a/Libraries/LibCore/CThread.h b/Libraries/LibCore/CThread.h index 4935c58449..20d910925f 100644 --- a/Libraries/LibCore/CThread.h +++ b/Libraries/LibCore/CThread.h @@ -1,5 +1,7 @@ #pragma once +#ifdef __serenity__ + class CThread { public: static CThread& main_thread(); @@ -16,3 +18,6 @@ private: int m_thread_id { -1 }; }; + +#endif +