Pi not recommended on OS X 10.8

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 

This works, but I want to get rid of this warning.

+6
source share
1 answer

Try to include math.h , which defines the macro of the standard C library M_PI .

+9
source

Source: https://habr.com/ru/post/927253/


All Articles