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

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

Issue 216983002: Mojo: Add mojo/public/c/DEPS and remove some no-longer-needed ifdefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/DEPS ('k') | mojo/public/c/tests/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/system/core.h
diff --git a/mojo/public/c/system/core.h b/mojo/public/c/system/core.h
index 206689f28de47d9d91188c58c08efcf8d5bcc01e..8a5116e696d312003e77d3374a44e5f67296a45c 100644
--- a/mojo/public/c/system/core.h
+++ b/mojo/public/c/system/core.h
@@ -236,11 +236,8 @@ struct MojoCreateDataPipeOptions {
uint32_t element_num_bytes;
uint32_t capacity_num_bytes;
};
-// TODO(vtl): Can we make this assertion work in C?
-#ifdef __cplusplus
MOJO_COMPILE_ASSERT(sizeof(MojoCreateDataPipeOptions) == 16,
MojoCreateDataPipeOptions_has_wrong_size);
-#endif
// |MojoWriteDataFlags|: Used to specify different modes to |MojoWriteData()|
// and |MojoBeginWriteData()|.
@@ -312,11 +309,8 @@ struct MojoCreateSharedBufferOptions {
uint32_t struct_size;
MojoCreateSharedBufferOptionsFlags flags;
};
-// TODO(vtl): Can we make this assertion work in C?
-#ifdef __cplusplus
MOJO_COMPILE_ASSERT(sizeof(MojoCreateSharedBufferOptions) == 8,
MojoCreateSharedBufferOptions_has_wrong_size);
-#endif
// |MojoDuplicateBufferHandleOptions|: Used to specify parameters in duplicating
// access to a shared buffer to |MojoDuplicateBufferHandle()|.
@@ -343,11 +337,8 @@ struct MojoDuplicateBufferHandleOptions {
uint32_t struct_size;
MojoDuplicateBufferHandleOptionsFlags flags;
};
-// TODO(vtl): Can we make this assertion work in C?
-#ifdef __cplusplus
MOJO_COMPILE_ASSERT(sizeof(MojoDuplicateBufferHandleOptions) == 8,
MojoDuplicateBufferHandleOptions_has_wrong_size);
-#endif
// |MojoMapBufferFlags|: Used to specify different modes to |MojoMapBuffer()|.
// |MOJO_MAP_BUFFER_FLAG_NONE| - No flags; default mode.
« no previous file with comments | « mojo/public/c/DEPS ('k') | mojo/public/c/tests/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698