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

Unified Diff: mojo/public/c/system/time.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/message_pipe.h ('k') | mojo/public/c/system/wait.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/system/time.h
diff --git a/mojo/public/c/system/time.h b/mojo/public/c/system/time.h
index 3bb4a898c7127fe601520515228376595ee5beb5..e32026074a9b2218123c1229fc1dd93fecf030b1 100644
--- a/mojo/public/c/system/time.h
+++ b/mojo/public/c/system/time.h
@@ -11,6 +11,8 @@
#include <stdint.h>
+#include "mojo/public/c/system/macros.h"
+
// |MojoTimeTicks|: A time delta, in microseconds, the meaning of which is
// source-dependent.
@@ -24,9 +26,7 @@ typedef uint64_t MojoDeadline;
#define MOJO_DEADLINE_INDEFINITE ((MojoDeadline)-1)
-#ifdef __cplusplus
-extern "C" {
-#endif
+MOJO_BEGIN_EXTERN_C
// Note: Pointer parameters that are labelled "optional" may be null (at least
// under some circumstances). Non-const pointer parameters are also labeled
@@ -43,8 +43,6 @@ extern "C" {
// is typically in the range of ~1-15 ms.
MojoTimeTicks MojoGetTimeTicksNow(void);
-#ifdef __cplusplus
-} // extern "C"
-#endif
+MOJO_END_EXTERN_C
#endif // MOJO_PUBLIC_C_SYSTEM_TIME_H_
« no previous file with comments | « mojo/public/c/system/message_pipe.h ('k') | mojo/public/c/system/wait.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698