From 3a5bc141bb4dd74912b7fdf99cefe157d9794034 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sat, 25 Jun 2016 12:40:08 -0300 Subject: [PATCH] build: use format macros in all linux boards This doesn't work for px4 since it manually defines __STDC_FORMAT_MACROS in some px4 modules, which needs to be updated. --- Tools/ardupilotwaf/boards.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index babef0290f..566d632a1f 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -232,6 +232,10 @@ class linux(Board): 'AP_HAL_Linux', ] + # We always want to use PRI format macros + cfg.define('__STDC_FORMAT_MACROS', 1) + + class minlure(linux): def configure_env(self, cfg, env): super(minlure, self).configure_env(cfg, env)