Skip to content

Commit

Permalink
Deal with systems which don't dfefine pi in the normal place
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Nov 13, 2023
1 parent a66d255 commit 1db5b07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/base/NSNumber/test01.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#include <stdlib.h>
#include <limits.h>

#ifndef M_PI
#define M_PI 3.14159265358979323846264338327950288
#endif

#if !defined(LLONG_MAX)
# if defined(__LONG_LONG_MAX__)
# define LLONG_MAX __LONG_LONG_MAX__
Expand Down

0 comments on commit 1db5b07

Please sign in to comment.