diff options
author | 2017-10-12 08:42:31 -0700 | |
---|---|---|
committer | 2017-10-12 08:42:31 -0700 | |
commit | 5d73d47f642dcd1b30a59c7a53c5332465bd0efa (patch) | |
tree | c398127c11d460f81fcf82004a7ebf468277e9a7 /src/core/lib/support/log_android.cc | |
parent | 4e9576663113f28fb4a6aaec43c8950666caff44 (diff) | |
parent | 97e11e02e00e96c94551fda3bc980c64b446e759 (diff) |
Merge github.com:grpc/grpc into vector
Diffstat (limited to 'src/core/lib/support/log_android.cc')
-rw-r--r-- | src/core/lib/support/log_android.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/lib/support/log_android.cc b/src/core/lib/support/log_android.cc index 6f1cec51f1..9e8529cbac 100644 --- a/src/core/lib/support/log_android.cc +++ b/src/core/lib/support/log_android.cc @@ -39,8 +39,8 @@ static android_LogPriority severity_to_log_priority(gpr_log_severity severity) { return ANDROID_LOG_DEFAULT; } -void gpr_log(const char *file, int line, gpr_log_severity severity, - const char *format, ...) { +extern "C" void gpr_log(const char *file, int line, gpr_log_severity severity, + const char *format, ...) { char *message = NULL; va_list args; va_start(args, format); @@ -50,8 +50,8 @@ void gpr_log(const char *file, int line, gpr_log_severity severity, free(message); } -void gpr_default_log(gpr_log_func_args *args) { - char *final_slash; +extern "C" void gpr_default_log(gpr_log_func_args *args) { + const char *final_slash; const char *display_file; char *output = NULL; |