문제

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.

도움이 되었습니까?

해결책

Try including math.h, which defines the C standard library macro M_PI.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top