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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/579>
This commit is contained in:
Tim-Philipp Müller 2020-07-26 14:48:52 +01:00
parent 36715f407c
commit 6e7f4491ce

View file

@ -20,6 +20,8 @@
#ifndef __GST_MATH_COMPAT_H__ #ifndef __GST_MATH_COMPAT_H__
#define __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 /* This header is not included automatically via gst/gst.h, you need to
* include it explicitly if you need it. */ * include it explicitly if you need it. */
@ -109,4 +111,6 @@ static union {
G_END_DECLS G_END_DECLS
#endif /* !__GI_SCANNER__ */
#endif /* __GST_MATH_COMPAT_H__ */ #endif /* __GST_MATH_COMPAT_H__ */