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: Rik
Subject: [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard
Date: Mon, 24 Jan 2022 16:36:01 -0500 (EST)

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

I would generally like to be able to count on M_PI, M_E and other GNU
extensions being defined.  Is there a way to do that through gnulib such that
if the OS-provided header file doesn't include the definitions then the gnulib
version which does is used?

However, if that is not possible then I think it would be nicer to define our
own constants as a fallback rather than just aborting compilation.  I'm sure
there are some weird platforms where maybe g++/gcc aren't ported and it seems
mean to try and require them to build g++ from sources.



    _______________________________________________________

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]