Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: mojo/public/c/system/wait.h

Issue 1807613002: Add MOJO_{BEGIN,END}_EXTERN_C macros, and use them. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: asdf Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/c/system/time.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/system/wait.h
diff --git a/mojo/public/c/system/wait.h b/mojo/public/c/system/wait.h
index 4ac513bfda4deebbedc8e98721066d97d7797f63..90d2f9a24f3349b2e571f96124e41cd86934fb9f 100644
--- a/mojo/public/c/system/wait.h
+++ b/mojo/public/c/system/wait.h
@@ -10,12 +10,11 @@
#define MOJO_PUBLIC_C_SYSTEM_WAIT_H_
#include "mojo/public/c/system/handle.h"
+#include "mojo/public/c/system/macros.h"
#include "mojo/public/c/system/result.h"
#include "mojo/public/c/system/time.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
+MOJO_BEGIN_EXTERN_C
// Waits on the given handle until one of the following happens:
// - A signal indicated by |signals| is satisfied.
@@ -101,8 +100,6 @@ MojoResult MojoWaitMany(
uint32_t* result_index, // Optional out
struct MojoHandleSignalsState* signals_states); // Optional out
-#ifdef __cplusplus
-} // extern "C"
-#endif
+MOJO_END_EXTERN_C
#endif // MOJO_PUBLIC_C_SYSTEM_WAIT_H_
« no previous file with comments | « mojo/public/c/system/time.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698