From 4aa8a012dea23188e1b30a4dd6234109b507a0e6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 12 Feb 2015 09:13:17 +1100 Subject: [PATCH] GCS_MAVLink: re-generate headers (updated stdint.h usage) --- .../include/mavlink/v1.0/ardupilotmega/version.h | 2 +- .../GCS_MAVLink/include/mavlink/v1.0/common/version.h | 2 +- .../GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h | 2 +- .../GCS_MAVLink/include/mavlink/v1.0/mavlink_types.h | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libraries/GCS_MAVLink/include/mavlink/v1.0/ardupilotmega/version.h b/libraries/GCS_MAVLink/include/mavlink/v1.0/ardupilotmega/version.h index 829d1ef8a0..fbdb5b985e 100644 --- a/libraries/GCS_MAVLink/include/mavlink/v1.0/ardupilotmega/version.h +++ b/libraries/GCS_MAVLink/include/mavlink/v1.0/ardupilotmega/version.h @@ -5,7 +5,7 @@ #ifndef MAVLINK_VERSION_H #define MAVLINK_VERSION_H -#define MAVLINK_BUILD_DATE "Thu Feb 12 08:58:26 2015" +#define MAVLINK_BUILD_DATE "Thu Feb 12 09:12:16 2015" #define MAVLINK_WIRE_PROTOCOL_VERSION "1.0" #define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255 diff --git a/libraries/GCS_MAVLink/include/mavlink/v1.0/common/version.h b/libraries/GCS_MAVLink/include/mavlink/v1.0/common/version.h index 08296a5ec7..a6b375fad7 100644 --- a/libraries/GCS_MAVLink/include/mavlink/v1.0/common/version.h +++ b/libraries/GCS_MAVLink/include/mavlink/v1.0/common/version.h @@ -5,7 +5,7 @@ #ifndef MAVLINK_VERSION_H #define MAVLINK_VERSION_H -#define MAVLINK_BUILD_DATE "Thu Feb 12 08:58:30 2015" +#define MAVLINK_BUILD_DATE "Thu Feb 12 09:12:20 2015" #define MAVLINK_WIRE_PROTOCOL_VERSION "1.0" #define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255 diff --git a/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h b/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h index daaf0e37ce..f6f6837fc5 100644 --- a/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h +++ b/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h @@ -226,7 +226,7 @@ MAVLINK_HELPER void mavlink_update_checksum(mavlink_message_t* msg, uint8_t c) * A typical use scenario of this function call is: * * @code - * #include // For fixed-width uint8_t type + * #include * * mavlink_message_t msg; * int chan = 0; diff --git a/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_types.h b/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_types.h index 45bfa2c4b4..77f7b80c55 100644 --- a/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_types.h +++ b/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_types.h @@ -1,13 +1,13 @@ #ifndef MAVLINK_TYPES_H_ #define MAVLINK_TYPES_H_ -// Visual Studio versions before 2013 don't conform to C99. -#if (defined _MSC_VER) && (_MSC_VER < 1800) -#include -#else -#include +// Visual Studio versions before 2010 don't have stdint.h, so we just error out. +#if (defined _MSC_VER) && (_MSC_VER < 1600) +#error "The C-MAVLink implementation requires Visual Studio 2010 or greater" #endif +#include + // Macro to define packed structures #ifdef __GNUC__ #define MAVPACKED( __Declaration__ ) __Declaration__ __attribute__((packed))