Closed GoogleCodeExporter closed 9 years ago
Correction: __SUNPRO_CC is only predefined when using the Sun Studio C++
compiler, __SUNPRO_C is predefined when using the C compiler
Original comment by oliver.s...@gmail.com
on 21 Aug 2013 at 1:20
So, the line :
# ifdef __IBMC__
would become :
#if defined(__IBMC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
?
Original comment by yann.col...@gmail.com
on 21 Aug 2013 at 2:00
[deleted comment]
yes, and you have to handle the "pop" too. This is how I patched it:
#if defined(__SUNPRO_CC) || defined(__SUNPRO_C)
# define LZ4_SUNSTUDIO
#endif
#if !defined(LZ4_FORCE_UNALIGNED_ACCESS) && !defined(__GNUC__)
# if defined(__IBMC__) || defined(LZ4_SUNSTUDIO)
# pragma pack(1)
# else
# pragma pack(push, 1)
# endif
#endif
typedef struct { U16 v; } _PACKED U16_S;
typedef struct { U32 v; } _PACKED U32_S;
typedef struct { U64 v; } _PACKED U64_S;
typedef struct {size_t v;} _PACKED size_t_S;
#if !defined(LZ4_FORCE_UNALIGNED_ACCESS) && !defined(__GNUC__)
# if !defined(LZ4_SUNSTUDIO)
# pragma pack(pop)
# else
# pragma pack()
# endif
#endif
Original comment by oliver.s...@gmail.com
on 21 Aug 2013 at 3:28
OK
Original comment by yann.col...@gmail.com
on 22 Aug 2013 at 9:22
Fixed into r103.
Original comment by yann.col...@gmail.com
on 9 Sep 2013 at 9:10
Original issue reported on code.google.com by
oliver.s...@gmail.com
on 21 Aug 2013 at 12:35