1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/bigdecimal] Suppress macro redefinition warnings

`HAVE_` macros by autoconf are defined as 1.

https://github.com/ruby/bigdecimal/commit/cd35868aa6
This commit is contained in:
Nobuyoshi Nakada 2022-10-30 22:21:18 +09:00 committed by git
parent 37593c7950
commit 7ed10abdd9

View file

@ -35,10 +35,10 @@ extern "C" {
#endif /* RB_UNUSED_VAR */ #endif /* RB_UNUSED_VAR */
#if defined(_MSC_VER) && _MSC_VER >= 1310 #if defined(_MSC_VER) && _MSC_VER >= 1310
# define HAVE___ASSUME # define HAVE___ASSUME 1
#elif defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 1300 #elif defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 1300
# define HAVE___ASSUME # define HAVE___ASSUME 1
#endif #endif
#ifndef UNREACHABLE #ifndef UNREACHABLE