aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2002-10-23 16:54:36 +0000
committerJuanma Barranquero2002-10-23 16:54:36 +0000
commitb9c3f7eb150b3e91c83c1fccc34de075d8ef9a6d (patch)
tree01d99d75c2b21f5b1cc31712429822b9deab49ae /src
parent316ed8219536370e4c278c388b902bc148cad74b (diff)
downloademacs-b9c3f7eb150b3e91c83c1fccc34de075d8ef9a6d.tar.gz
emacs-b9c3f7eb150b3e91c83c1fccc34de075d8ef9a6d.zip
Add definition of XColor.
Diffstat (limited to 'src')
-rw-r--r--src/macgui.h10
-rw-r--r--src/w32gui.h10
2 files changed, 20 insertions, 0 deletions
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;
37typedef WindowPtr Window; 37typedef WindowPtr Window;
38#endif 38#endif
39 39
40/* A definition of XColor for non-X frames. */
41#ifndef HAVE_X_WINDOWS
42typedef struct {
43 unsigned long pixel;
44 unsigned short red, green, blue;
45 char flags;
46 char pad;
47} XColor;
48#endif
49
40#define FACE_DEFAULT (~0) 50#define FACE_DEFAULT (~0)
41 51
42 52
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
86 /* Optional RGBQUAD array for palette follows (see BITMAPINFO docs). */ 86 /* Optional RGBQUAD array for palette follows (see BITMAPINFO docs). */
87} XImage; 87} XImage;
88 88
89/* A definition of XColor for non-X frames. */
90#ifndef HAVE_X_WINDOWS
91typedef struct {
92 unsigned long pixel;
93 unsigned short red, green, blue;
94 char flags;
95 char pad;
96} XColor;
97#endif
98
89#define FACE_DEFAULT (~0) 99#define FACE_DEFAULT (~0)
90 100
91extern HINSTANCE hinst; 101extern HINSTANCE hinst;