From: Juanma Barranquero Date: Wed, 23 Oct 2002 16:54:36 +0000 (+0000) Subject: Add definition of XColor. X-Git-Tag: ttn-vms-21-2-B4~12741 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b9c3f7eb150b3e91c83c1fccc34de075d8ef9a6d;p=emacs.git Add definition of XColor. --- diff --git a/src/macgui.h b/src/macgui.h index a6ad18fddcf..87c8cc48f04 100644 --- a/src/macgui.h +++ b/src/macgui.h @@ -37,6 +37,16 @@ typedef struct OpaqueWindowPtr* Window; typedef WindowPtr Window; #endif +/* A definition of XColor for non-X frames. */ +#ifndef HAVE_X_WINDOWS +typedef struct { + unsigned long pixel; + unsigned short red, green, blue; + char flags; + char pad; +} XColor; +#endif + #define FACE_DEFAULT (~0) diff --git a/src/w32gui.h b/src/w32gui.h index 9f59290027c..4121639fbf6 100644 --- a/src/w32gui.h +++ b/src/w32gui.h @@ -86,6 +86,16 @@ typedef struct _XImage /* Optional RGBQUAD array for palette follows (see BITMAPINFO docs). */ } XImage; +/* A definition of XColor for non-X frames. */ +#ifndef HAVE_X_WINDOWS +typedef struct { + unsigned long pixel; + unsigned short red, green, blue; + char flags; + char pad; +} XColor; +#endif + #define FACE_DEFAULT (~0) extern HINSTANCE hinst;