aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-12-03 13:19:29 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-12-03 13:19:29 +0100
commitda8d44ccbaab21c9dedc258b6572f5514c6c9233 (patch)
tree9d2026e9b2f7d7372e514409351ec0cc260074c1
parentc6fc69fbddae87454b2c5449a229e8f4cd802e51 (diff)
downloadlibssh-da8d44ccbaab21c9dedc258b6572f5514c6c9233.tar.gz
libssh-da8d44ccbaab21c9dedc258b6572f5514c6c9233.tar.xz
libssh-da8d44ccbaab21c9dedc258b6572f5514c6c9233.zip
BUG 98: Use __attribute__ ((packed)) only with GCC.
-rw-r--r--include/libssh/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libssh/string.h b/include/libssh/string.h
index 5f3942db..a4e7c448 100644
--- a/include/libssh/string.h
+++ b/include/libssh/string.h
@@ -31,7 +31,7 @@ struct ssh_string_struct {
uint32_t size;
unsigned char data[1];
}
-#if !defined(__SUNPRO_C) && !defined(_MSC_VER)
+#if defined(__GNUC__)
__attribute__ ((packed))
#endif
#ifdef _MSC_VER