From 0e32a2bf85e93a3bbf0536cec115b9cdab83c57c Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Mon, 2 Dec 2002 18:58:46 +0000 Subject: [PATCH] Protect PALETTEENTRY and LOGPALETTE with #ifndefs. --- include/wingdi.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/wingdi.h b/include/wingdi.h index c4251a00140..b7d54f7cf32 100644 --- a/include/wingdi.h +++ b/include/wingdi.h @@ -1388,22 +1388,28 @@ typedef struct #define SYSPAL_STATIC 1 #define SYSPAL_NOSTATIC 2 +#ifndef _PALETTEENTRY_DEFINED +#define _PALETTEENTRY_DEFINED typedef struct tagPALETTEENTRY { BYTE peRed, peGreen, peBlue, peFlags; } PALETTEENTRY, *PPALETTEENTRY, *LPPALETTEENTRY; +#endif /* Logical palette entry flags */ #define PC_RESERVED 0x01 #define PC_EXPLICIT 0x02 #define PC_NOCOLLAPSE 0x04 +#ifndef _LOGPALETTE_DEFINED +#define _LOGPALETTE_DEFINED typedef struct tagLOGPALETTE { WORD palVersion; WORD palNumEntries; PALETTEENTRY palPalEntry[1]; } LOGPALETTE, *PLOGPALETTE, *LPLOGPALETTE, *NPLOGPALETTE; +#endif /* Pens */ -- 2.11.4.GIT