From 47b5e0968aa0ec47f522ba357c159b2450645806 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Wed, 2 Jul 2014 15:41:10 -0700 Subject: Sync from internal Google development. --- upb/bindings/stdc/error.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'upb/bindings/stdc/error.h') diff --git a/upb/bindings/stdc/error.h b/upb/bindings/stdc/error.h index 9802097..cfc7025 100644 --- a/upb/bindings/stdc/error.h +++ b/upb/bindings/stdc/error.h @@ -12,16 +12,12 @@ #ifndef UPB_STDC_ERROR_H_ #define UPB_STDC_ERROR_H_ -#ifdef __cplusplus -extern "C" { -#endif +UPB_BEGIN_EXTERN_C extern upb_errorspace upb_stdc_errorspace; void upb_status_fromerrno(upb_status *status, int code); bool upb_errno_is_wouldblock(int code); -#ifdef __cplusplus -} /* extern "C" */ -#endif +UPB_END_EXTERN_C #endif /* UPB_STDC_ERROR_H_ */ -- cgit v1.2.3