[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch: src/xterm.c for old C compiler
From: |
Tetsurou Okazaki |
Subject: |
Patch: src/xterm.c for old C compiler |
Date: |
Fri, 17 Nov 2006 15:16:32 +0900 |
User-agent: |
Wanderlust/2.15.5 (Almost Unreal) Emacs/22.0 Mule/5.0 (SAKAKI) |
Hi,
My environment, gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98),
requires the following patch to build CVS-head Emacs again.
Please apply this.
2006-11-17 Tetsurou Okazaki <address@hidden> (tiny change)
* xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
to avoid gcc 2.96 error.
%%%
diff -c -r1.931 xterm.c
*** src/xterm.c 10 Nov 2006 08:00:47 -0000 1.931
--- src/xterm.c 17 Nov 2006 05:08:57 -0000
***************
*** 8333,8345 ****
if (have_net_atom)
{
Lisp_Object frame;
- XSETFRAME (frame, f);
const char *atom = "_NET_WM_STATE";
const char *fs = "_NET_WM_STATE_FULLSCREEN";
const char *fw = "_NET_WM_STATE_MAXIMIZED_HORZ";
const char *fh = "_NET_WM_STATE_MAXIMIZED_VERT";
const char *what = NULL;
/* If there are _NET_ atoms we assume we have extended window manager
hints. */
switch (f->want_fullscreen)
--- 8333,8346 ----
if (have_net_atom)
{
Lisp_Object frame;
const char *atom = "_NET_WM_STATE";
const char *fs = "_NET_WM_STATE_FULLSCREEN";
const char *fw = "_NET_WM_STATE_MAXIMIZED_HORZ";
const char *fh = "_NET_WM_STATE_MAXIMIZED_VERT";
const char *what = NULL;
+ XSETFRAME (frame, f);
+
/* If there are _NET_ atoms we assume we have extended window manager
hints. */
switch (f->want_fullscreen)
%%%
--
Tetsurou Okazaki
- Patch: src/xterm.c for old C compiler,
Tetsurou Okazaki <=