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

Unified Diff: ppapi/api/dev/ppb_gamepad_dev.idl

Issue 9348029: Make inline c blocks non-greedy, and use to add pragma pack to gamepad structure (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: temporarily disable static assert for 2 sided roll Created 8 years, 10 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 | ppapi/c/dev/ppb_gamepad_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/dev/ppb_gamepad_dev.idl
diff --git a/ppapi/api/dev/ppb_gamepad_dev.idl b/ppapi/api/dev/ppb_gamepad_dev.idl
index 209a21c63fc6e1f36933c33420a7217b86a8533c..8e6a4a9263b85f362f43b406e37a297c183abdc2 100644
--- a/ppapi/api/dev/ppb_gamepad_dev.idl
+++ b/ppapi/api/dev/ppb_gamepad_dev.idl
@@ -12,6 +12,10 @@ label Chrome {
M18 = 0.1
};
+#inline c
+#pragma pack(push, 1)
+#endinl
+
/**
* The data for one gamepad device.
*/
@@ -71,6 +75,10 @@ struct PP_GamepadsData_Dev {
PP_GamepadData_Dev[4] items;
};
+#inline c
+#pragma pack(pop)
+#endinl
+
/**
* The <code>PPB_Gamepad_Dev</code> interface allows retrieving data from
* gamepad/joystick devices that are connected to the system.
« no previous file with comments | « no previous file | ppapi/c/dev/ppb_gamepad_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698