pi deprecated on OS X 10.8
-
06-07-2021 - |
Frage
Is there a replacement for pi
const on OS X 10.8?
When I use it I get the following warning:
'pi' is deprecated: first deprecated on Mac OS X 10.8
It works but I want to get rid of that warning.
Lösung
Try including math.h
, which defines the C standard library macro M_PI
.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow