summaryrefslogtreecommitdiff
path: root/upb/bindings/stdc
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2014-07-02 15:41:10 -0700
committerJosh Haberman <jhaberman@gmail.com>2014-07-02 15:41:10 -0700
commit47b5e0968aa0ec47f522ba357c159b2450645806 (patch)
treed8cd2e7d518b1d6572a6002843446c9e6ee8ef89 /upb/bindings/stdc
parent2d10fa33071d52d7a35ce3b13bc459cd16a0aa33 (diff)
Sync from internal Google development.
Diffstat (limited to 'upb/bindings/stdc')
-rw-r--r--upb/bindings/stdc/error.h8
-rw-r--r--upb/bindings/stdc/io.h8
2 files changed, 4 insertions, 12 deletions
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 <stdio.h>
#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_ */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback