# HG changeset patch # User Markus Mützel # Date 1642091590 -3600 # Thu Jan 13 17:33:10 2022 +0100 # Node ID 91b825d1c48d2b93911f1f488e39be2c30b6afa9 # Parent 7961eb9cdc18048235e0fa11921debfe8a7d945e Use POSIX extensions in header (bug #61812). * libinterp/corefcn/graphics.in.h, libinterp/corefcn/url-handle-manager.h, liboctave/numeric/lo-mappers.h, liboctave/util/lo-ieee.h, liboctave/util/oct-inttypes.h: Define _XOPEN_SOURCE 700 before including in public headers to use POSIX extensions (like M_PI). diff -r 7961eb9cdc18 -r 91b825d1c48d libinterp/corefcn/graphics.in.h --- a/libinterp/corefcn/graphics.in.h Thu Jan 13 07:28:48 2022 -0800 +++ b/libinterp/corefcn/graphics.in.h Thu Jan 13 17:33:10 2022 +0100 @@ -29,6 +29,7 @@ #include "octave-config.h" #include +#define _XOPEN_SOURCE 700 // use POSIX extensions in #include #include diff -r 7961eb9cdc18 -r 91b825d1c48d libinterp/corefcn/url-handle-manager.h --- a/libinterp/corefcn/url-handle-manager.h Thu Jan 13 07:28:48 2022 -0800 +++ b/libinterp/corefcn/url-handle-manager.h Thu Jan 13 17:33:10 2022 +0100 @@ -30,6 +30,7 @@ #include "octave-config.h" +#define _XOPEN_SOURCE 700 // use POSIX extensions in #include #include diff -r 7961eb9cdc18 -r 91b825d1c48d liboctave/numeric/lo-mappers.h --- a/liboctave/numeric/lo-mappers.h Thu Jan 13 07:28:48 2022 -0800 +++ b/liboctave/numeric/lo-mappers.h Thu Jan 13 17:33:10 2022 +0100 @@ -28,6 +28,7 @@ #include "octave-config.h" +#define _XOPEN_SOURCE 700 // use POSIX extensions in #include #include diff -r 7961eb9cdc18 -r 91b825d1c48d liboctave/util/lo-ieee.h --- a/liboctave/util/lo-ieee.h Thu Jan 13 07:28:48 2022 -0800 +++ b/liboctave/util/lo-ieee.h Thu Jan 13 17:33:10 2022 +0100 @@ -26,6 +26,7 @@ #if ! defined (octave_lo_ieee_h) #define octave_lo_ieee_h 1 +#define _XOPEN_SOURCE 700 // use POSIX extensions in #include #include "octave-config.h" diff -r 7961eb9cdc18 -r 91b825d1c48d liboctave/util/oct-inttypes.h --- a/liboctave/util/oct-inttypes.h Thu Jan 13 07:28:48 2022 -0800 +++ b/liboctave/util/oct-inttypes.h Thu Jan 13 17:33:10 2022 +0100 @@ -28,6 +28,7 @@ #include "octave-config.h" +#define _XOPEN_SOURCE 700 // use POSIX extensions in #include #include