From 6e7f4491ce9f32f02cd52e5bf836c2b78cfe07f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 26 Jul 2020 14:48:52 +0100 Subject: [PATCH] math-compat.h: silence g-ir-scanner warnings Easier to just make g-ir-scanner skip this header via #ifndef __GI_SCANNER__ than maintain different sets of headers in the meson.build file. Warning: Gst: symbol="rint": Unknown namespace for symbol "rint" Warning: Gst: symbol="rintf": Unknown namespace for symbol "rintf" Warning: Gst: symbol="isnan": Unknown namespace for symbol "isnan" Part-of: --- gst/math-compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/math-compat.h b/gst/math-compat.h index 7573b3a..fe3fe95 100644 --- a/gst/math-compat.h +++ b/gst/math-compat.h @@ -20,6 +20,8 @@ #ifndef __GST_MATH_COMPAT_H__ #define __GST_MATH_COMPAT_H__ +#ifndef __GI_SCANNER__ + /* This header is not included automatically via gst/gst.h, you need to * include it explicitly if you need it. */ @@ -109,4 +111,6 @@ static union { G_END_DECLS +#endif /* !__GI_SCANNER__ */ + #endif /* __GST_MATH_COMPAT_H__ */ -- 2.7.4