From 2240eb6b4fd0b1603b9d3275ac29a6b3ab3f66e0 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sun, 10 Jul 2016 11:29:51 -0300 Subject: [PATCH] Move __STDC_FORMAT_MACROS to build system (#174) __STDC_FORMAT_MACROS changes the behavior of inttypes.h to allow defining format macros for printf-like functions. It needs to be defined before any include is done, otherwise due to include chains and header guards it may not take effect. Instead of defining it everywhere it is used, let the PX4 build system to deal with it. --- EKF/RingBuffer.h | 1 - EKF/estimator_interface.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/EKF/RingBuffer.h b/EKF/RingBuffer.h index 5c453bc87f..00ab9efaf8 100644 --- a/EKF/RingBuffer.h +++ b/EKF/RingBuffer.h @@ -37,7 +37,6 @@ * Template RingBuffer. */ -#define __STDC_FORMAT_MACROS #include #include #include diff --git a/EKF/estimator_interface.cpp b/EKF/estimator_interface.cpp index 1474c84493..fdd2e0117c 100644 --- a/EKF/estimator_interface.cpp +++ b/EKF/estimator_interface.cpp @@ -40,7 +40,6 @@ * @author Siddharth B Purohit */ -#define __STDC_FORMAT_MACROS #include #include #include "../ecl.h"