Don't use __attribute__ for compilers that don't support it.

merge-requests/1/head
Henning Geinitz 2003-04-15 14:51:34 +00:00
rodzic 1a4455d2dd
commit 58bec0901d
2 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -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 <henning@meier-geinitz.de>

Wyświetl plik

@ -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;
};
/*