]> git.eshelyaron.com Git - emacs.git/commitdiff
Add definition of XColor.
authorJuanma Barranquero <lekktu@gmail.com>
Wed, 23 Oct 2002 16:54:36 +0000 (16:54 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Wed, 23 Oct 2002 16:54:36 +0000 (16:54 +0000)
src/macgui.h
src/w32gui.h

index a6ad18fddcffe1eccf5c881dc7308163fadfabe1..87c8cc48f04b38cde53b0f5aa4eb1c8be6bb9105 100644 (file)
@@ -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)
 
 
index 9f59290027cb1a0fd457f7ed734a7718a6b1e0a8..4121639fbf64cf82a0ddcb5ca4d3c5d9d1279eb4 100644 (file)
@@ -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;