summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-math/src/math.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-02-12 09:27:41 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-02-12 09:27:41 +0900
commit8e78db3af3ff5d12fa84b6a4d70482efbb3a091a (patch)
tree3820c55697f8c0cab812cc23b22715c87362300f /mrbgems/mruby-math/src/math.c
parent27dbcd0f0d6f6144d5d59d215131bdbafda14f46 (diff)
parentb7899aa6ee54783ebc30f0bbb19b93d314b4ff10 (diff)
downloadmruby-8e78db3af3ff5d12fa84b6a4d70482efbb3a091a.tar.gz
mruby-8e78db3af3ff5d12fa84b6a4d70482efbb3a091a.zip
Merge pull request #1693 from cremno/mruby-math-rm-cygwin-compat
mruby-math: remove Cygwin compatibility macros
Diffstat (limited to 'mrbgems/mruby-math/src/math.c')
-rw-r--r--mrbgems/mruby-math/src/math.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/mrbgems/mruby-math/src/math.c b/mrbgems/mruby-math/src/math.c
index 3daece9bc..a699a12f0 100644
--- a/mrbgems/mruby-math/src/math.c
+++ b/mrbgems/mruby-math/src/math.c
@@ -359,14 +359,6 @@ math_atanh(mrb_state *mrb, mrb_value obj)
/*
EXPONENTIALS AND LOGARITHMS
*/
-#if defined __CYGWIN__
-# include <cygwin/version.h>
-# if CYGWIN_VERSION_DLL_MAJOR < 1005
-# define nan(x) nan()
-# endif
-# define log(x) ((x) < 0.0 ? nan("") : log(x))
-# define log10(x) ((x) < 0.0 ? nan("") : log10(x))
-#endif
/*
* call-seq: