From f5dd983bd29a5092b4bbeddd7fc646edc7bf06c4 Mon Sep 17 00:00:00 2001 From: jpreiss Date: Tue, 26 Jan 2021 16:06:38 -0800 Subject: [PATCH] forward declaration to avoid ARM-specific __fp16 --- src/utils/interface/lighthouse/lighthouse_calibration.h | 6 +++++- src/utils/src/lighthouse/lighthouse_calibration.c | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/utils/interface/lighthouse/lighthouse_calibration.h b/src/utils/interface/lighthouse/lighthouse_calibration.h index 80ce022d01..fd2ff2310f 100644 --- a/src/utils/interface/lighthouse/lighthouse_calibration.h +++ b/src/utils/interface/lighthouse/lighthouse_calibration.h @@ -1,6 +1,10 @@ #pragma once -#include "ootx_decoder.h" +#include + +// Forward declaration from ootx_decoder.h. Avoid exposing __fp16 type, which +// doesn't exist on x86, so this header can be compiled for Python bindings. +struct ootxDataFrame_s; typedef struct { float phase; diff --git a/src/utils/src/lighthouse/lighthouse_calibration.c b/src/utils/src/lighthouse/lighthouse_calibration.c index c8bcc90a71..373dc3ec92 100644 --- a/src/utils/src/lighthouse/lighthouse_calibration.c +++ b/src/utils/src/lighthouse/lighthouse_calibration.c @@ -31,6 +31,7 @@ */ #include "lighthouse_calibration.h" +#include "ootx_decoder.h" #include #include "cf_math.h"