1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

BUG 98: Use __attribute__ ((packed)) only with GCC.

This commit is contained in:
Andreas Schneider
2012-12-03 13:19:29 +01:00
parent c6fc69fbdd
commit da8d44ccba

View File

@@ -31,7 +31,7 @@ struct ssh_string_struct {
uint32_t size; uint32_t size;
unsigned char data[1]; unsigned char data[1];
} }
#if !defined(__SUNPRO_C) && !defined(_MSC_VER) #if defined(__GNUC__)
__attribute__ ((packed)) __attribute__ ((packed))
#endif #endif
#ifdef _MSC_VER #ifdef _MSC_VER