emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch: src/xterm.c for old C compiler


From: Jan Djärv
Subject: Re: Patch: src/xterm.c for old C compiler
Date: Fri, 17 Nov 2006 14:03:14 +0100
User-agent: Thunderbird 1.5.0.8 (X11/20061107)



Tetsurou Okazaki skrev:
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.

Applied.

        Jan D.



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) %%%






reply via email to

[Prev in Thread] Current Thread [Next in Thread]