Module Name:    xsrc
Committed By:   mrg
Date:           Mon Jul 20 23:49:02 UTC 2015

Modified Files:
        xsrc/external/mit/xmag/dist: Scale.c xmag.c

Log Message:
protect config.h with HAVE_CONFIG_H.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.4 -r1.2 xsrc/external/mit/xmag/dist/Scale.c \
    xsrc/external/mit/xmag/dist/xmag.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xmag/dist/Scale.c
diff -u xsrc/external/mit/xmag/dist/Scale.c:1.1.1.4 xsrc/external/mit/xmag/dist/Scale.c:1.2
--- xsrc/external/mit/xmag/dist/Scale.c:1.1.1.4	Sun Jul 19 23:00:53 2015
+++ xsrc/external/mit/xmag/dist/Scale.c	Mon Jul 20 23:49:02 2015
@@ -30,7 +30,9 @@ from The Open Group.
  * Author:  Davor Matic, MIT X Consortium
  */
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #include <stdio.h>
 #include <ctype.h>
Index: xsrc/external/mit/xmag/dist/xmag.c
diff -u xsrc/external/mit/xmag/dist/xmag.c:1.1.1.4 xsrc/external/mit/xmag/dist/xmag.c:1.2
--- xsrc/external/mit/xmag/dist/xmag.c:1.1.1.4	Sun Jul 19 23:00:53 2015
+++ xsrc/external/mit/xmag/dist/xmag.c	Mon Jul 20 23:49:02 2015
@@ -26,7 +26,9 @@ from The Open Group.
 
 */
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #include <stdlib.h>		/* for exit() and abs() */
 #include <stdio.h>

Reply via email to