Skip to content

Commit

Permalink
M_PI fix for compilation on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
boeleman committed Aug 17, 2021
1 parent 176303a commit 75c11b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions quantimpy/quantimpyc.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

/******************************************************************************/

// Define M_PI for Compilation on Windows
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

/******************************************************************************/

unsigned short r_pixel_2d(int x, int y , unsigned short* image, int dim1 );
unsigned short r_pixel_3d(int x, int y, int z, unsigned short* image, int dim1, int dim2);

Expand Down

0 comments on commit 75c11b5

Please sign in to comment.