Skip to content

Commit

Permalink
Fixed BasicTypes preproc checks for pointer type
Browse files Browse the repository at this point in the history
  • Loading branch information
Viet T. Nguyen authored and LeStarch committed Dec 13, 2021
1 parent ab6b8ad commit f5f4a33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Fw/Types/BasicTypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ typedef unsigned int NATIVE_UINT_TYPE; //!< native unsigned integer type declara
#else
#define POINTER_CAST U8
#endif
#elif __i386 == 1 // GCC 4.1.2
#elif defined (__i386) && __i386 == 1 // GCC 4.1.2
#define POINTER_CAST U32
#elif __x86_64 == 1 // GCC 4.1.2
#elif defined (__x86_64) && __x86_64 == 1 // GCC 4.1.2
#define POINTER_CAST U64
#elif CPU == PPC604 // VxWorks 6.7 RAD750
#elif defined (CPU) && defined (PPC604) && CPU == PPC604 // VxWorks 6.7 RAD750
#define POINTER_CAST U32
#elif CPU == SPARC
#elif defined (CPU) && defined(SPARC) && CPU == SPARC
#define POINTER_CAST U32
#else
#error Cannot get size of pointer cast!
Expand Down

0 comments on commit f5f4a33

Please sign in to comment.