changeset 238:0cd59a309606 main

struct packing for targets other than AVR
author Bob Cook <bob@bobcookdev.com>
date Sat, 27 Dec 2014 08:43:17 -0800
parents 43f43ebe35df
children 29e5eaf00ff5
files main/packages/common/can/can_messages.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main/packages/common/can/can_messages.h	Sat Dec 27 08:42:01 2014 -0800
+++ b/main/packages/common/can/can_messages.h	Sat Dec 27 08:43:17 2014 -0800
@@ -34,7 +34,9 @@
 
 #include <stdint.h>
 
+#if !defined( __AVR__ )
 #pragma pack(push,1)
+#endif
 
 // ----------------------------------------------------------------------------------------
 //  Overall scheme (lower is higher priority):
@@ -208,7 +210,9 @@
 
 // ----------------------------------------------------------------------------------------
 
+#if !defined( __AVR__ )
 #pragma pack(pop)
+#endif
 
 // ----------------------------------------------------------------------------------------
 #endif  // #if !defined( BCDRL_COMMON_CAN_CAN_MESSAGES_H )