mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-04 12:48:22 +08:00
Merge pull request #908 from cgohlke/patch-2
Define M_PI (not part of C89)
This commit is contained in:
@@ -19,6 +19,10 @@
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.1415926535897932384626433832795
|
||||
#endif
|
||||
|
||||
#define PI M_PI
|
||||
#define TWOPI (2 * M_PI)
|
||||
|
||||
|
||||
@@ -21,6 +21,10 @@
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.1415926535897932384626433832795
|
||||
#endif
|
||||
|
||||
#define PI M_PI
|
||||
#define TWOPI (2 * M_PI)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user