From 58bec0901d82da0ad54425c7a406b01b6abf86bf Mon Sep 17 00:00:00 2001 From: Henning Geinitz Date: Tue, 15 Apr 2003 14:51:34 +0000 Subject: [PATCH] Don't use __attribute__ for compilers that don't support it. --- ChangeLog | 2 ++ include/md5.h | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 20b7d0e63..a779a4238 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ warnings, Added detection for IS-410 and IS-430. * doc/descriptions-external/ibm.desc: Removed, now included in SANE distribution. + * include/md5.h: Don't use __attribute__ for compilers that don't + support it. 2003-04-14 Henning Meier-Geinitz diff --git a/include/md5.h b/include/md5.h index 1225a34bd..fbe86bce4 100644 --- a/include/md5.h +++ b/include/md5.h @@ -83,6 +83,12 @@ typedef unsigned long int md5_uintptr; #define __md5_buffer md5_buffer +#ifdef __GNUC__ +#define ALIGN __attribute__ ((__aligned__ (__alignof__ (md5_uint32)))) +#else +#define ALIGN +#endif + /* Structure to save state of computation between the single steps. */ struct md5_ctx { @@ -93,7 +99,7 @@ struct md5_ctx md5_uint32 total[2]; md5_uint32 buflen; - char buffer[128] __attribute__ ((__aligned__ (__alignof__ (md5_uint32)))); + char buffer[128] ALIGN; }; /*