forked from Archive/PX4-Autopilot
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:
parent
4f8ffb3420
commit
2240eb6b4f
|
@ -37,7 +37,6 @@
|
|||
* Template RingBuffer.
|
||||
*/
|
||||
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#include <inttypes.h>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
* @author Siddharth B Purohit <siddharthbharatpurohit@gmail.com>
|
||||
*/
|
||||
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#include <inttypes.h>
|
||||
#include <math.h>
|
||||
#include "../ecl.h"
|
||||
|
|
Loading…
Reference in New Issue