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

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

Issue 295383012: Mojo: Require our public options structs to be aligned like int64_t's. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | mojo/public/c/system/data_pipe.h » ('j') | mojo/public/c/system/macros.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/system/buffer.h
diff --git a/mojo/public/c/system/buffer.h b/mojo/public/c/system/buffer.h
index 360832150f4adc947a892c1e094b3a7c05e87fb2..30cf00fa206b03b3e72498a9999312cae1152db6 100644
--- a/mojo/public/c/system/buffer.h
+++ b/mojo/public/c/system/buffer.h
@@ -38,7 +38,7 @@ const MojoCreateSharedBufferOptionsFlags
((MojoCreateSharedBufferOptionsFlags) 0)
#endif
-struct MojoCreateSharedBufferOptions {
+struct MOJO_ALIGNAS(MOJO_ALIGNOF(int64_t)) MojoCreateSharedBufferOptions {
uint32_t struct_size;
MojoCreateSharedBufferOptionsFlags flags;
};
« no previous file with comments | « no previous file | mojo/public/c/system/data_pipe.h » ('j') | mojo/public/c/system/macros.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698