From d79ef3af71862f45fdb2b49b8427d403f2df0727 Mon Sep 17 00:00:00 2001 From: David Garcia Quintas Date: Thu, 28 Jan 2016 00:21:27 -0800 Subject: Fixed wrong usage of global var --- include/grpc++/impl/grpc_library.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/grpc++') diff --git a/include/grpc++/impl/grpc_library.h b/include/grpc++/impl/grpc_library.h index f7ff28ec15..e8a075f5eb 100644 --- a/include/grpc++/impl/grpc_library.h +++ b/include/grpc++/impl/grpc_library.h @@ -34,6 +34,8 @@ #ifndef GRPCXX_IMPL_GRPC_LIBRARY_H #define GRPCXX_IMPL_GRPC_LIBRARY_H +#include + #include #include #include @@ -56,11 +58,9 @@ class GrpcLibraryInitializer GRPC_FINAL { /// A no-op method to force the linker to reference this class, which will /// take care of initializing and shutting down the gRPC runtime. - inline void summon() {} + int summon() { return 0; } }; -extern GrpcLibraryInitializer g_gli_initializer; - } // namespace internal } // namespace grpc -- cgit v1.2.3