changeset 47982:cd58bd276a86

Add definition of XColor.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 23 Oct 2002 16:54:36 +0000
parents 74b52651467d
children af143d9ed38e
files src/macgui.h src/w32gui.h
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/macgui.h	Wed Oct 23 16:53:48 2002 +0000
+++ b/src/macgui.h	Wed Oct 23 16:54:36 2002 +0000
@@ -37,6 +37,16 @@
 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)
 
 
--- a/src/w32gui.h	Wed Oct 23 16:53:48 2002 +0000
+++ b/src/w32gui.h	Wed Oct 23 16:54:36 2002 +0000
@@ -86,6 +86,16 @@
   /* 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;