Replaced deprecated #cpu preprocessor assertions with the defined() operator.

This commit is contained in:
Ron Sluiter
2011-08-25 16:27:12 +00:00
parent 0ec77b79e6
commit 3e37c36e3b
+6 -4
View File
@@ -49,6 +49,8 @@ Last Modified: $Date: 2009-04-27 14:28:42 $
* 6.x. Added test for CPU macros.
* .09 04-07-11 kmp - Added __APPLE__ to define bit order
* tested by jph with simMotorDriver.
* .10 08-25-11 rls - Replaced deprecated #cpu preprocessor assertions with
* the defined() operator.
*/
#ifndef INCmotorh
@@ -127,13 +129,13 @@ typedef enum {
/* Define, from top to bottom, how bit fields are packed. */
/* This works for gnu, SunPro, MS Visual C. */
#if defined(_WIN32) || defined (_M_IX86) || defined (_X86_)
#if defined(_WIN32) || defined(_M_IX86) || defined(_X86_)
#define LSB_First (TRUE) /* LSB is packed first. */
#elif defined (__i386__) || defined(_armv4l_) || defined (_X86_64_) || defined(__APPLE__)
#elif defined(__i386__) || defined(_armv4l_) || defined(_X86_64_) || defined(__APPLE__)
#define LSB_First (TRUE) /* LSB is packed first. */
#elif #cpu(i386)
#elif defined(i386)
#define LSB_First (TRUE) /* LSB is packed first. */
#elif #cpu(sparc) || #cpu(m68k) || #cpu(powerpc)
#elif defined(sparc) || defined(m68k) || defined(powerpc)
#define MSB_First (TRUE) /* MSB is packed first. */
#elif (CPU == PPC604) || (CPU == PPC603) || (CPU==PPC85XX)
#define MSB_First (TRUE) /* MSB is packed first. */