diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-01 11:46:15 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-01 11:46:15 +0000 |
commit | d08a79cfe1059e72fd21efdbe406b6adb8bbeff6 (patch) | |
tree | a33297700e5f729acf4a2ae196b007d2ad084947 /ext/bigdecimal/bigdecimal.h | |
parent | b7fd00c8fa50f592e958540b0604114a6471275f (diff) | |
download | ruby-d08a79cfe1059e72fd21efdbe406b6adb8bbeff6.tar.gz |
* ext/bigdecimal/bigdecimal.h (RB_UNUSED_VAR, UNREACHABLE):
import macros from ruby.h for 1.9.3.
[Bug #8588] [ruby-core:55730]
* ext/bigdecimal/bigdecimal.gemspec: Bump version to 1.2.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal/bigdecimal.h')
-rw-r--r-- | ext/bigdecimal/bigdecimal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/bigdecimal/bigdecimal.h b/ext/bigdecimal/bigdecimal.h index a53ad47e81..e7a8bccee7 100644 --- a/ext/bigdecimal/bigdecimal.h +++ b/ext/bigdecimal/bigdecimal.h @@ -19,6 +19,18 @@ #include "ruby/ruby.h" #include <float.h> +#ifndef RB_UNUSED_VAR +# ifdef __GNUC__ +# define RB_UNUSED_VAR(x) x __attribute__ ((unused)) +# else +# define RB_UNUSED_VAR(x) x +# endif +#endif + +#ifndef UNREACHABLE +# define UNREACHABLE /* unreachable */ +#endif + #undef BDIGIT #undef SIZEOF_BDIGITS #undef BDIGIT_DBL |