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 ++------ upb/bindings/stdc/io.h | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) (limited to 'upb/bindings/stdc') 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_ */ diff --git a/upb/bindings/stdc/io.h b/upb/bindings/stdc/io.h index fd19bef..7c6f282 100644 --- a/upb/bindings/stdc/io.h +++ b/upb/bindings/stdc/io.h @@ -13,9 +13,7 @@ #include #include "upb/bytestream.h" -#ifdef __cplusplus -extern "C" { -#endif +UPB_BEGIN_EXTERN_C /* upb_stdio ******************************************************************/ @@ -66,8 +64,6 @@ void upb_stdio_open(upb_stdio *stdio, const char *filename, const char *mode, upb_bytesrc *upb_stdio_bytesrc(upb_stdio *stdio); upb_bytesink *upb_stdio_bytesink(upb_stdio *stdio); -#ifdef __cplusplus -} /* extern "C" */ -#endif +UPB_END_EXTERN_C #endif /* UPB_STDC_IO_H_ */ -- cgit v1.2.3