diff options
-rw-r--r-- | software/include/octosdependant.h | 3 | ||||
-rw-r--r-- | software/include/octtype.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/software/include/octosdependant.h b/software/include/octosdependant.h index 6e797bc..d7008a4 100644 --- a/software/include/octosdependant.h +++ b/software/include/octosdependant.h @@ -103,6 +103,9 @@ extern "C" { /* Look for PowerPC */ #elif defined( _M_MPPC ) || defined( _M_PPC ) || defined(PPC) || defined(__PPC) || defined(_ARCH_PPC) #define OCT_MACH_ENDIAN OCT_MACH_BIG_ENDIAN + /* Look for Blackfin */ + #elif defined( __bfin__ ) + #define OCT_MACH_ENDIAN OCT_MACH_LITTLE_ENDIAN #elif defined( CPU ) #if CPU==PPC860 || CPU==SIMNT #define OCT_MACH_ENDIAN OCT_MACH_BIG_ENDIAN diff --git a/software/include/octtype.h b/software/include/octtype.h index 4400570..c8f46d4 100644 --- a/software/include/octtype.h +++ b/software/include/octtype.h @@ -52,6 +52,10 @@ extern "C" { No target-specific header available ----------------------------------------------------------------------------*/ +#ifdef SZ +#undef SZ +#endif + /***************************** DEFINES *************************************/ /* 16-bit integer */ typedef unsigned short UINT16; |