Permalink
Browse files

Don't need to pack *everything* to 4 bytes

  • Loading branch information...
1 parent ffeb258 commit 5158d2bc7999cf188203526d9673c0028e243fe5 Caleb James DeLisle committed Nov 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 wire/Headers.h
View
@@ -36,6 +36,7 @@
#define Headers_SwitchHeader_TYPE_DATA 0
#define Headers_SwitchHeader_TYPE_CONTROL 1
+#pragma pack(push)
#pragma pack(4)
struct Headers_SwitchHeader
{
@@ -55,6 +56,7 @@ struct Headers_SwitchHeader
};
#define Headers_SwitchHeader_SIZE 12
Assert_compileTime(sizeof(struct Headers_SwitchHeader) == Headers_SwitchHeader_SIZE);
+#pragma pack(pop)
static inline uint32_t Headers_getMessageType(const struct Headers_SwitchHeader* header)

0 comments on commit 5158d2b

Please sign in to comment.