diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-02-01 17:22:44 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-02-01 20:18:53 +0100 |
commit | ab57db2bf19608c455e346e8cd8928aa3d9105ba (patch) | |
tree | d4467a0e3bd1d2d5a0dcf6b18a208562232bfbc9 | |
parent | aab59eaaab73a987114f49cfad0c9044caa79787 (diff) | |
download | serenity-ab57db2bf19608c455e346e8cd8928aa3d9105ba.zip |
AK: #ifdef out the contents of SharedBuffer on other platforms
-rw-r--r-- | AK/SharedBuffer.cpp | 4 | ||||
-rw-r--r-- | AK/SharedBuffer.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/AK/SharedBuffer.cpp b/AK/SharedBuffer.cpp index 52056d2846..528b68e54a 100644 --- a/AK/SharedBuffer.cpp +++ b/AK/SharedBuffer.cpp @@ -24,6 +24,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifdef __serenity__ + #include <AK/SharedBuffer.h> #include <AK/kmalloc.h> #include <Kernel/Syscall.h> @@ -121,3 +123,5 @@ bool SharedBuffer::set_nonvolatile() } } + +#endif diff --git a/AK/SharedBuffer.h b/AK/SharedBuffer.h index 44a20d1841..7db8bae7e4 100644 --- a/AK/SharedBuffer.h +++ b/AK/SharedBuffer.h @@ -26,6 +26,8 @@ #pragma once +#ifdef __serenity__ + #include <AK/RefCounted.h> #include <AK/RefPtr.h> @@ -58,3 +60,5 @@ private: } using AK::SharedBuffer; + +#endif |