From 2fb62bf267eccde5d74fbc6d5066f506726b5bb1 Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Fri, 27 May 2011 21:53:48 +0000 Subject: [PATCH] Apple support for how bit fields are packed. --- motorApp/MotorSrc/motor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/motorApp/MotorSrc/motor.h b/motorApp/MotorSrc/motor.h index 5b3e7ee8..69bd3c2d 100644 --- a/motorApp/MotorSrc/motor.h +++ b/motorApp/MotorSrc/motor.h @@ -47,6 +47,8 @@ Last Modified: $Date: 2009-04-27 14:28:42 $ * .07 11-19-08 rls - More extensive bit field tests. * .08 00-09-10 rls - GNU preprocessor assertions are deprecated with VxWorks * 6.x. Added test for CPU macros. + * .09 04-07-11 kmp - Added __APPLE__ to define bit order + * tested by jph with simMotorDriver. */ #ifndef INCmotorh @@ -127,7 +129,7 @@ typedef enum { /* This works for gnu, SunPro, MS Visual C. */ #if defined(_WIN32) || defined (_M_IX86) || defined (_X86_) #define LSB_First (TRUE) /* LSB is packed first. */ -#elif defined (__i386__) || defined(_armv4l_) || defined (_X86_64_) +#elif defined (__i386__) || defined(_armv4l_) || defined (_X86_64_) || defined(__APPLE__) #define LSB_First (TRUE) /* LSB is packed first. */ #elif #cpu(i386) #define LSB_First (TRUE) /* LSB is packed first. */