From bdee69a7eff92be3213f415b382e571582ce15b0 Mon Sep 17 00:00:00 2001 From: Sergey Isakov Date: Tue, 10 Mar 2020 22:08:52 +0300 Subject: [PATCH] header compatibility with Clover.app Signed-off-by: Sergey Isakov --- rEFIt_UEFI/libeg/libeg.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rEFIt_UEFI/libeg/libeg.h b/rEFIt_UEFI/libeg/libeg.h index 37f38daba..8c4afea0f 100644 --- a/rEFIt_UEFI/libeg/libeg.h +++ b/rEFIt_UEFI/libeg/libeg.h @@ -174,6 +174,7 @@ typedef struct { BOOLEAN HasAlpha; //moved here to avoid alignment issue } EG_IMAGE; +#ifdef _cplusplus class EG_RECT { public: INTN XPos; @@ -187,7 +188,14 @@ public: bool operator == (const EG_RECT& other) { return XPos == other.XPos && YPos == other.YPos && Width == other.Width && Height == other.Height; } bool operator != (const EG_RECT& other) { return !(*this == other); } }; - +#else +typedef struct EG_RECT { + INTN XPos; + INTN YPos; + INTN Width; + INTN Height; +} EG_RECT; +#endif #define TEXT_YMARGIN (2) #define TEXT_XMARGIN (8)