diff --git a/src/auto/configure b/src/auto/configure index 83c2f137e3..936fb59de8 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -7228,7 +7228,7 @@ echo "${ECHO_T}$rubyhdrdir" >&6; } RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" elif test -d "/System/Library/Frameworks/Ruby.framework"; then RUBY_LIBS="-framework Ruby" - RUBY_CFLAGS= + RUBY_CFLAGS="-DRUBY_VERSION=$rubyversion" librubyarg= fi diff --git a/src/configure.in b/src/configure.in index c3a5336d5d..e57be41bc5 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1734,7 +1734,7 @@ if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then dnl On Mac OS X it is safer to just use the -framework flag RUBY_LIBS="-framework Ruby" dnl Don't include the -I flag when -framework is set - RUBY_CFLAGS= + RUBY_CFLAGS="-DRUBY_VERSION=$rubyversion" librubyarg= fi diff --git a/src/if_ruby.c b/src/if_ruby.c index 4436e06094..b2bf6a9f26 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -102,7 +102,11 @@ # include #endif #ifdef RUBY19_OR_LATER -# include +# ifdef FEAT_GUI_MACVIM +# include +# else +# include +# endif #endif #undef off_t /* ruby defines off_t as _int64, Mingw uses long */