Commit cec81b22 authored by Paul Eggert's avatar Paul Eggert
Browse files

Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).

* md5.h (ATTRIBUTE_ALIGNED): New macro.
(struct md5_ctx): Use it.
parent af59aa6e
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.
......@@ -72,9 +72,10 @@ typedef u_int32_t md5_uint32;
#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. */
......@@ -87,7 +88,7 @@ struct md5_ctx
md5_uint32 total[2];
md5_uint32 buflen;
char buffer[128] __attribute__ ((__aligned__ (__alignof__ (md5_uint32))));
char buffer[128] ATTRIBUTE_ALIGNED (__alignof__ (md5_uint32));
};
/*
......@@ -145,4 +146,3 @@ extern void *md5_buffer (const char *buffer, size_t len,
void *resblock);
#endif /* md5.h */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment