From 2908a377cfd451050ecaadef4b5768b5baeffd8d Mon Sep 17 00:00:00 2001 From: James Goppert Date: Thu, 24 Sep 2015 16:43:57 -0400 Subject: [PATCH] Found stc macro def issue for sitl build on travis. --- src/lib/launchdetection/CatapultLaunchMethod.cpp | 1 + src/platforms/posix/drivers/gpssim/gpssim.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib/launchdetection/CatapultLaunchMethod.cpp b/src/lib/launchdetection/CatapultLaunchMethod.cpp index 273da3ee76..8a0e8a3bb3 100644 --- a/src/lib/launchdetection/CatapultLaunchMethod.cpp +++ b/src/lib/launchdetection/CatapultLaunchMethod.cpp @@ -41,6 +41,7 @@ #include "CatapultLaunchMethod.h" #include +#define __STDC_FORMAT_MACROS 1 #include namespace launchdetection diff --git a/src/platforms/posix/drivers/gpssim/gpssim.cpp b/src/platforms/posix/drivers/gpssim/gpssim.cpp index 3115ecb63e..d94fc35f8a 100644 --- a/src/platforms/posix/drivers/gpssim/gpssim.cpp +++ b/src/platforms/posix/drivers/gpssim/gpssim.cpp @@ -37,6 +37,7 @@ */ #include +#define __STDC_FORMAT_MACROS #include #include #include