aboutsummaryrefslogtreecommitdiff
path: root/mavlink
diff options
context:
space:
mode:
Diffstat (limited to 'mavlink')
-rw-r--r--mavlink/include/mavlink/v1.0/common/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mavlink/include/mavlink/v1.0/common/common.h b/mavlink/include/mavlink/v1.0/common/common.h
index 020211d40..de6e22011 100644
--- a/mavlink/include/mavlink/v1.0/common/common.h
+++ b/mavlink/include/mavlink/v1.0/common/common.h
@@ -5,6 +5,10 @@
#ifndef COMMON_H
#define COMMON_H
+#ifndef MAVLINK_H
+ #error Wrong include order: common.h MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set all defines from mavlink.h manually.
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif