changeset 222:8170f8bde4d1 main

Specify packing to ensure the AVR compilation matches the Linux compilations.
author Bob Cook <bob@bobcookdev.com>
date Thu, 17 Apr 2014 21:59:49 -0700
parents 8e6ca2ead01a
children 5f11f6622bc4
files main/packages/common/can/can_messages.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main/packages/common/can/can_messages.h	Mon Sep 09 20:03:31 2013 -0700
+++ b/main/packages/common/can/can_messages.h	Thu Apr 17 21:59:49 2014 -0700
@@ -34,6 +34,8 @@
 
 #include <stdint.h>
 
+#pragma pack(push,1)
+
 // ----------------------------------------------------------------------------------------
 //  Overall scheme (lower is higher priority):
 // 
@@ -187,6 +189,10 @@
 } can_data_sonar_front;
 
 // ----------------------------------------------------------------------------------------
+
+#pragma pack(pop)
+
+// ----------------------------------------------------------------------------------------
 #endif  // #if !defined( BCDRL_COMMON_CAN_CAN_MESSAGES_H )
 // ----------------------------------------------------------------------------------------