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

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

Issue 2062323002: Mojo C bindings library pt1: MojomBuffer (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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
Index: mojo/public/c/system/buffer.h
diff --git a/mojo/public/c/system/buffer.h b/mojo/public/c/system/buffer.h
index 2dd747799169adb5ca772d169ca70e2b3b1f2168..26d4c15582108bd9d104beda8a81fbf767706d19 100644
--- a/mojo/public/c/system/buffer.h
+++ b/mojo/public/c/system/buffer.h
@@ -38,7 +38,7 @@ struct MOJO_ALIGNAS(8) MojoCreateSharedBufferOptions {
uint32_t struct_size;
MojoCreateSharedBufferOptionsFlags flags;
};
-MOJO_STATIC_ASSERT(sizeof(MojoCreateSharedBufferOptions) == 8,
+MOJO_STATIC_ASSERT(sizeof(struct MojoCreateSharedBufferOptions) == 8,
"MojoCreateSharedBufferOptions has wrong size");
// |MojoDuplicateBufferHandleOptions|: Used to specify parameters in duplicating
@@ -61,7 +61,7 @@ struct MOJO_ALIGNAS(8) MojoDuplicateBufferHandleOptions {
uint32_t struct_size;
MojoDuplicateBufferHandleOptionsFlags flags;
};
-MOJO_STATIC_ASSERT(sizeof(MojoDuplicateBufferHandleOptions) == 8,
+MOJO_STATIC_ASSERT(sizeof(struct MojoDuplicateBufferHandleOptions) == 8,
"MojoDuplicateBufferHandleOptions has wrong size");
// |MojoBufferInformation|: Used to provide information about a buffer (see
@@ -82,7 +82,7 @@ struct MOJO_ALIGNAS(8) MojoBufferInformation {
MojoBufferInformationFlags flags;
uint64_t num_bytes;
};
-MOJO_STATIC_ASSERT(sizeof(MojoBufferInformation) == 16,
+MOJO_STATIC_ASSERT(sizeof(struct MojoBufferInformation) == 16,
"MojoBufferInformation has wrong size");
// |MojoMapBufferFlags|: Used to specify different modes to |MojoMapBuffer()|.

Powered by Google App Engine
This is Rietveld 408576698