diff options
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r-- | src/if_ruby.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c index 9b6d388a3c..e989c01336 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -99,6 +99,12 @@ # define rb_ary_detransient rb_ary_detransient_stub #endif +// On macOS pre-installed Ruby defines "SIZEOF_TIME_T" as "SIZEOF_LONG" so it +// conflicts with the definition in config.h then causes macro-redifned warning. +#ifdef SIZEOF_TIME_T +# undef SIZEOF_TIME_T +#endif + #include <ruby.h> #if RUBY_VERSION >= 19 # include <ruby/encoding.h> |