From da8d44ccbaab21c9dedc258b6572f5514c6c9233 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 3 Dec 2012 13:19:29 +0100 Subject: BUG 98: Use __attribute__ ((packed)) only with GCC. --- include/libssh/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libssh') diff --git a/include/libssh/string.h b/include/libssh/string.h index 5f3942d..a4e7c44 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 -- cgit