aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/ext/grpc/rb_grpc.h
diff options
context:
space:
mode:
authorGravatar Yuki Yugui Sonoda <yugui@yugui.jp>2015-04-16 20:09:55 +0900
committerGravatar Yuki Yugui Sonoda <yugui@yugui.jp>2015-04-16 20:09:55 +0900
commit99eb9f94bf49cdb322b0de9f4bb16d5af15b08fd (patch)
treede0b98fa8bb291ab5f981096ab2aa28766c493a2 /src/ruby/ext/grpc/rb_grpc.h
parent3c88e5d6e110ea5bc654f6efe6032cbc843fb3a3 (diff)
Fix a linkage error with mac clang
Prevent symbol cache variables from being instantiated multipe times.
Diffstat (limited to 'src/ruby/ext/grpc/rb_grpc.h')
-rw-r--r--src/ruby/ext/grpc/rb_grpc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ruby/ext/grpc/rb_grpc.h b/src/ruby/ext/grpc/rb_grpc.h
index fac4c6d671..1d411baf5b 100644
--- a/src/ruby/ext/grpc/rb_grpc.h
+++ b/src/ruby/ext/grpc/rb_grpc.h
@@ -48,13 +48,13 @@ extern VALUE grpc_rb_sNewServerRpc;
extern VALUE grpc_rb_sStatus;
/* sym_code is the symbol for the code attribute of grpc_rb_sStatus. */
-VALUE sym_code;
+extern VALUE sym_code;
/* sym_details is the symbol for the details attribute of grpc_rb_sStatus. */
-VALUE sym_details;
+extern VALUE sym_details;
/* sym_metadata is the symbol for the metadata attribute of grpc_rb_sStatus. */
-VALUE sym_metadata;
+extern VALUE sym_metadata;
/* GC_NOT_MARKED is used in calls to Data_Wrap_Struct to indicate that the
wrapped struct does not need to participate in ruby gc. */