Skip to content

Commit 3fb2821

Browse files
committed
Fixed if_ruby.c for compilation without Ruby.framework
1 parent da95ee4 commit 3fb2821

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/auto/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7059,7 +7059,7 @@ $as_echo "$rubyhdrdir" >&6; }
70597059
RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
70607060
elif test -d "/System/Library/Frameworks/Ruby.framework"; then
70617061
RUBY_LIBS="-framework Ruby"
7062-
RUBY_CFLAGS="-DRUBY_VERSION=$rubyversion"
7062+
RUBY_CFLAGS="-DRUBY_VERSION=$rubyversion -DRUBY_FRAMEWORK"
70637063
librubyarg=
70647064
fi
70657065

src/configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,7 +1846,7 @@ if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
18461846
dnl On Mac OS X it is safer to just use the -framework flag
18471847
RUBY_LIBS="-framework Ruby"
18481848
dnl Don't include the -I flag when -framework is set
1849-
RUBY_CFLAGS="-DRUBY_VERSION=$rubyversion"
1849+
RUBY_CFLAGS="-DRUBY_VERSION=$rubyversion -DRUBY_FRAMEWORK"
18501850
librubyarg=
18511851
fi
18521852

src/if_ruby.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@
107107
# define rb_num2int rb_num2int_stub
108108
#endif
109109

110-
#ifdef FEAT_GUI_MACVIM
110+
#ifdef RUBY_FRAMEWORK
111111
# include <Ruby/ruby.h>
112112
#else
113113
# include <ruby.h>
114114
#endif
115115
#ifdef RUBY19_OR_LATER
116-
# ifdef FEAT_GUI_MACVIM
116+
# ifdef RUBY_FRAMEWORK
117117
# include <Ruby/ruby/encoding.h>
118118
# else
119119
# include <ruby/encoding.h>

0 commit comments

Comments
 (0)