From 9e7bda83bfe1804b245911408fe16652ba29ccec Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 21 Sep 2017 15:35:31 -0700 Subject: [PATCH] DataFlash: add temporary workaround for macro usage Make DataFlash correctly save the git version. We should think about a better solution, like it was done on GCSMavlink, but this is the minimal change to make it possible to move includes of version.h to their respective users. --- libraries/DataFlash/DFMessageWriter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/DataFlash/DFMessageWriter.cpp b/libraries/DataFlash/DFMessageWriter.cpp index 4a394823bd..e11bdf9d03 100644 --- a/libraries/DataFlash/DFMessageWriter.cpp +++ b/libraries/DataFlash/DFMessageWriter.cpp @@ -1,6 +1,10 @@ #include "AP_Common/AP_FWVersion.h" #include "DFMessageWriter.h" +#define FORCE_VERSION_H_INCLUDE +#include "ap_version.h" +#undef FORCE_VERSION_H_INCLUDE + extern const AP_HAL::HAL& hal; /* LogStartup - these are simple state machines which allow us to