diff options
author | Yash Tibrewal <yashkt@google.com> | 2017-10-06 14:54:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-06 14:54:05 -0700 |
commit | 1ed8dd119571a370407534dfdf6662bb5c809d4a (patch) | |
tree | e3cee849809602f1eabc8e3dba0d0b810f3f28cd /src/core | |
parent | de4c432f94cee9064abe16638fe80d95ea294396 (diff) | |
parent | 598cbd882d5fc8caf7e72e8186c1896d4af1824c (diff) |
Merge pull request #12869 from yashykt/logandroid
extern C for gpr_default_log in android
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/support/log_android.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/lib/support/log_android.cc b/src/core/lib/support/log_android.cc index 6f1cec51f1..fed535d0d2 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,7 +50,7 @@ void gpr_log(const char *file, int line, gpr_log_severity severity, free(message); } -void gpr_default_log(gpr_log_func_args *args) { +extern "C" void gpr_default_log(gpr_log_func_args *args) { char *final_slash; const char *display_file; char *output = NULL; |