bug-texinfo
[Top][All Lists]
Advanced

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

Build fix for texinfo CVS build & DJGPP [PATCH]


From: Richard Dawe
Subject: Build fix for texinfo CVS build & DJGPP [PATCH]
Date: Mon, 31 Mar 2003 18:57:49 +0100

Hello.

Current texinfo CVS doesn't quite build against DJGPP CVS.
It looks like the macro 'max' is no longer defined. The patch below
fixes the build for me.

Here's a ChangeLog entry:

2003-03-31  Richard Dawe  <address@hidden>

        * info/pcterm.c (pc_up_line): Use MAX macro instead of max,
        which is undefined.

Do I need to fill out any copyright assignment paperwork for this
one liner?

Thanks, bye, Rich =]

PS: Please CC me on repies, since I'm no subscribed to bug-texinfo.

Index: info/pcterm.c
===================================================================
RCS file: /cvsroot/texinfo/texinfo/info/pcterm.c,v
retrieving revision 1.2
diff -p -u -3 -r1.2 pcterm.c
--- info/pcterm.c       22 Mar 2003 17:43:05 -0000      1.2
+++ info/pcterm.c       31 Mar 2003 17:50:44 -0000
@@ -68,7 +68,7 @@ pc_up_line (void)
 {
   int x, y;
   ScreenGetCursor (&y, &x);
-  ScreenSetCursor (max (y-1, 0), x);
+  ScreenSetCursor (MAX (y-1, 0), x);
 }
 
 /* Move the cursor down one line. */





reply via email to

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