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

It works but I want to get rid of that warning.

Bruno Ferreira
  • 942
  • 9
  • 22

1 Answers1

10

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

  • H2CO3 and Jean Nicolas suggeted right track for deprication of pi.I had tried in my own Project as per their suggestions :) – Dipak Narigara Aug 05 '13 at 12:10