summaryrefslogtreecommitdiff
path: root/src/synproto.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-05-21 10:35:47 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-05-31 15:14:37 +1000
commitf3abb163c3c216f48a5f4624b12c32e496336513 (patch)
tree9767f00cb4154262a8b1ed8450eaab1c21b89086 /src/synproto.h
parente6ca6521b4e880c6a314a880e73039e574a02c28 (diff)
check for HAVE_CONFIG_H before including config.h
No real effect, just for correctness. Plus, move the include directive up to be the first include. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'src/synproto.h')
-rw-r--r--src/synproto.h6
1 files 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;