aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-01-28 00:21:27 -0800
committerGravatar David Garcia Quintas <dgq@google.com>2016-01-28 00:21:27 -0800
commitd79ef3af71862f45fdb2b49b8427d403f2df0727 (patch)
tree877475f87d576d8e21961377fb3a0c0cf13e08bd /include/grpc++
parent6523391782281411cdbcf05f568a60e81f70728e (diff)
Fixed wrong usage of global var
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/impl/grpc_library.h6
1 files changed, 3 insertions, 3 deletions
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 <iostream>
+
#include <grpc++/impl/codegen/config.h>
#include <grpc++/impl/codegen/grpc_library.h>
#include <grpc/grpc.h>
@@ -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