AK: #ifdef out the contents of SharedBuffer on other platforms

This commit is contained in:
Andreas Kling 2020-02-01 17:22:44 +01:00
parent aab59eaaab
commit ab57db2bf1
2 changed files with 8 additions and 0 deletions

View file

@ -24,6 +24,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifdef __serenity__
#include <AK/SharedBuffer.h> #include <AK/SharedBuffer.h>
#include <AK/kmalloc.h> #include <AK/kmalloc.h>
#include <Kernel/Syscall.h> #include <Kernel/Syscall.h>
@ -121,3 +123,5 @@ bool SharedBuffer::set_nonvolatile()
} }
} }
#endif

View file

@ -26,6 +26,8 @@
#pragma once #pragma once
#ifdef __serenity__
#include <AK/RefCounted.h> #include <AK/RefCounted.h>
#include <AK/RefPtr.h> #include <AK/RefPtr.h>
@ -58,3 +60,5 @@ private:
} }
using AK::SharedBuffer; using AK::SharedBuffer;
#endif