Compilation error fixed

This commit is contained in:
Bertrand Songis
2016-06-30 22:44:16 +02:00
parent fef4bff9fa
commit 5f03924b5f
8 changed files with 22 additions and 57 deletions
+17 -2
View File
@@ -42,9 +42,24 @@
#endif
#if defined(SIMU) || defined(CPUARM) || GCC_VERSION < 472
typedef int32_t int24_t;
typedef int32_t int24_t;
#else
typedef __int24 int24_t;
typedef __int24 int24_t;
#endif
#if __GNUC__
#define PACK( __Declaration__ ) __Declaration__ __attribute__((__packed__))
#else
#define PACK( __Declaration__ ) __pragma( pack(push, 1) ) __Declaration__ __pragma( pack(pop) )
#endif
#if defined(WIN32)
#define FORCEINLINE inline
#define NOINLINE
#define round(x) floor(x+0.5)
#define strcasecmp _stricmp
#define strncasecmp _tcsnicmp
#define snprintf _snprintf
#endif
#endif // _DEFINITIONS_H_