octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not par


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard
Date: Mon, 17 Jan 2022 03:28:18 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.55

Follow-up Comment #23, bug #61812 (project octave):

I don't know how to check for all of the XSI/POSIX extensions over ISO C/C++
that we might be using.

Afaict, the only header that uses any of those extensions from the <math.h> or
<cmath> header is `oct-cmplx.h`.

Removing those extensions from the public facing headers would also be a
possible alternative IIUC. In that case, projects using Octave header files
wouldn't necessarily need to be XSI compatible either.

It might still be a good idea to `#define _XOPEN_SOURCE 700` when we compile
Octave (to comply to the POSIX spec). Maybe that could be done in
`oct-conf-post-private.h` on the default branch?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61812>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]