1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 19:07:35 +00:00

LibHTML: Make it possible to build LibHTML on the host.

- "make" builds the normal Serenity libhtml.a
- "make -f Makefile.host" builds a test program for the host machine.
This commit is contained in:
Andreas Kling 2019-06-22 21:21:57 +02:00
parent 04b2082e97
commit 7e1cb86da7
12 changed files with 101 additions and 56 deletions

View file

@ -1,5 +1,7 @@
#pragma once
#ifdef __serenity__
#include <AK/Assertions.h>
#include <AK/Types.h>
#include <unistd.h>
@ -109,3 +111,15 @@ private:
T m_resource;
CLock m_lock;
};
#else
class CLock {
public:
CLock() { }
~CLock() { }
};
#define LOCKER(x)
#endif