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.
This commit is contained in:
Lucas De Marchi 2016-07-10 11:29:51 -03:00 committed by Lorenz Meier
parent 4f8ffb3420
commit 2240eb6b4f
2 changed files with 0 additions and 2 deletions

View File

@ -37,7 +37,6 @@
* Template RingBuffer. * Template RingBuffer.
*/ */
#define __STDC_FORMAT_MACROS
#include <inttypes.h> #include <inttypes.h>
#include <cstdio> #include <cstdio>
#include <cstring> #include <cstring>

View File

@ -40,7 +40,6 @@
* @author Siddharth B Purohit <siddharthbharatpurohit@gmail.com> * @author Siddharth B Purohit <siddharthbharatpurohit@gmail.com>
*/ */
#define __STDC_FORMAT_MACROS
#include <inttypes.h> #include <inttypes.h>
#include <math.h> #include <math.h>
#include "../ecl.h" #include "../ecl.h"