]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0,posix: Define _GNU_SOURCE for sincos*()
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 25 Jan 2024 12:26:39 +0000 (13:26 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 25 Jan 2024 12:26:39 +0000 (13:26 +0100)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1519

vapi/glib-2.0.vapi
vapi/posix.vapi

index ee14f186a77f0be4a57ec80e4614c084ab95bb06..9b572784b8fa7a6b12ddcab32708b251190a3f68 100644 (file)
@@ -1701,7 +1701,9 @@ namespace GLib {
                public static float sinhf (float x);
                public static double tanh (double x);
                public static float tanhf (float x);
+               [CCode (feature_test_macro = "_GNU_SOURCE")]
                public static void sincos (double x, out double sinx, out double cosx);
+               [CCode (feature_test_macro = "_GNU_SOURCE")]
                public static void sincosf (float x, out float sinx, out float cosx);
                public static double acosh (double x);
                public static float acoshf (float x);
index 8651cdc9ab0e43e54f621f190d7cd92c123d9a5a..caa0f41f8897f65fe9a56364272792717f9ebfd0 100644 (file)
@@ -810,9 +810,9 @@ namespace Posix {
        public double tanh (double x);
        [CCode (cheader_filename = "math.h")]
        public float tanhf (float x);
-       [CCode (cheader_filename = "math.h")]
+       [CCode (cheader_filename = "math.h", feature_test_macro = "_GNU_SOURCE")]
        public void sincos (double x, out double sinx, out double cosx);
-       [CCode (cheader_filename = "math.h")]
+       [CCode (cheader_filename = "math.h", feature_test_macro = "_GNU_SOURCE")]
        public void sincosf (float x, out float sinx, out float cosx);
        [CCode (cheader_filename = "math.h")]
        public double acosh (double x);