kopia lustrzana https://gitlab.com/sane-project/backends
Don't use __attribute__ for compilers that don't support it.
rodzic
1a4455d2dd
commit
58bec0901d
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Ładowanie…
Reference in New Issue