* md5.h (ATTRIBUTE_ALIGNED): New macro.
(struct md5_ctx): Use it.
2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
+ Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
+ * md5.h (ATTRIBUTE_ALIGNED): New macro.
+ (struct md5_ctx): Use it.
+
Port to Solaris 10, which doesn't support FC_HINT_STYLE.
* xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
defined.
#endif
-#ifndef __GNUC__
-#define __attribute__(X)
-#define __alignof__(X) 1
+#if HAVE_ATTRIBUTE_ALIGNED
+# define ATTRIBUTE_ALIGNED(N) __attribute__ ((__aligned__ (N)))
+#else
+# define ATTRIBUTE_ALIGNED(N)
#endif
/* Structure to save state of computation between the single steps. */
md5_uint32 total[2];
md5_uint32 buflen;
- char buffer[128] __attribute__ ((__aligned__ (__alignof__ (md5_uint32))));
+ char buffer[128] ATTRIBUTE_ALIGNED (__alignof__ (md5_uint32));
};
/*
void *resblock);
#endif /* md5.h */
-