From d213ccbbfcd12a1c27467a2556c801026d855a56 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 12 Sep 2017 11:34:58 -0700 Subject: [PATCH] ArduCopter: protect version.h from inclusion and use ap_version.h --- ArduCopter/version.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ArduCopter/version.h b/ArduCopter/version.h index 549436e4fb..a396372ec8 100644 --- a/ArduCopter/version.h +++ b/ArduCopter/version.h @@ -1,6 +1,10 @@ #pragma once -#include "AP_Common/AP_FWVersion.h" +#ifndef FORCE_VERSION_H_INCLUDE +#error version.h should never be included directly. You probably want to include AP_Common/AP_FWVersion.h +#endif + +#include "ap_version.h" #define THISFIRMWARE "APM:Copter V3.6-dev"