+2012-12-04 Paul Eggert <eggert@cs.ucla.edu>
+
+ Include <config.h> uniformly in oldXMenu sources.
+ * Activate.c, AddPane.c, AddSel.c, ChgPane.c, ChgSel.c, Create.c:
+ * InsPane.c, InsSel.c, Internal.c, XMakeAssoc.c:
+ Do not include <config.h>, since XMenuInt.h does that now.
+ * XLookAssoc.c, XMenuInt.h: Include <config.h>.
+ This avoids a build failure when configuring on Fedora 17
+ --with-x-toolkit=no, reported by Dmitry Andropov in
+ <http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00078.html>.
+
2012-10-06 Ulrich Müller <ulm@gentoo.org>
* Makefile.in (AR, ARFLAGS): Get values from configure.
#include "copyright.h"
-
+#include <config.h>
#include <X11/Xlib.h>
#include <X11/Xresource.h>
#include "X10.h"
* in the table the routine will return a NULL pointer. All XId's are relative
* to the currently active Display.
*/
-caddr_t XLookUpAssoc(register Display *dpy, register XAssocTable *table, register XID x_id)
-
- /* XAssocTable to search in. */
- /* XId to search for. */
+caddr_t XLookUpAssoc(Display *dpy,
+ XAssocTable *table, /* XAssocTable to search in. */
+ XID x_id) /* XId to search for. */
{
int hash;
register XAssoc *bucket;
/* It is apparently not in the table. */
return(NULL);
}
-
#ifndef _XMenuInternal_h_
#define _XMenuInternal_h_
+#include <config.h>
+
/* Avoid warnings about redefining NULL by including <stdio.h> first;
the other file which wants to define it (<stddef.h> on Ultrix
systems) can deal if NULL is already defined, but <stdio.h> can't. */