[PATCH synaptics 5/9] check for HAVE_CONFIG_H before including config.h
Peter Hutterer
peter.hutterer at who-t.net
Wed May 30 22:20:03 PDT 2012
No real effect, just for correctness. Plus, move the include directive up to
be the first include.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/synproto.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/synproto.h b/src/synproto.h
index cf0034c..f164393 100644
--- a/src/synproto.h
+++ b/src/synproto.h
@@ -27,13 +27,15 @@
#ifndef _SYNPROTO_H_
#define _SYNPROTO_H_
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <sys/ioctl.h>
#include <xf86Xinput.h>
#include <xisb.h>
-#include "config.h"
-
struct _SynapticsPrivateRec;
typedef struct _SynapticsPrivateRec SynapticsPrivate;
--
1.7.10.1
More information about the xorg-devel
mailing list