mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Move __STDC_FORMAT_MACROS to build system
__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 having to define it everywhere it is used, move the define to the build system. Also update ecl and DriverFramework submodules to deal with the changed definitions.
This commit is contained in:
committed by
Lorenz Meier
parent
d2194d787f
commit
18330f7ab7
@@ -115,7 +115,6 @@ print("""
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#include <inttypes.h>
|
||||
|
||||
#ifndef PRIu64
|
||||
|
||||
Reference in New Issue
Block a user