diff options
| author | Paul Eggert | 2011-02-12 02:08:19 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-12 02:08:19 -0800 |
| commit | 64640ce2d31c153698c501e9385e3d5397181de9 (patch) | |
| tree | d4d9cfa0fdb7548a20769428cb82e5a9646e2bb6 /src | |
| parent | 7cd330deb66863a144d7e2c36210f13d10db5245 (diff) | |
| parent | cec81b228b5a0e7850f23c97593352655ec56bf1 (diff) | |
| download | emacs-64640ce2d31c153698c501e9385e3d5397181de9.tar.gz emacs-64640ce2d31c153698c501e9385e3d5397181de9.zip | |
Merge from mainline.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/md5.h | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 617bd23ab78..43ca62aedfc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -26,6 +26,10 @@ | |||
| 26 | 26 | ||
| 27 | 2011-02-12 Paul Eggert <eggert@cs.ucla.edu> | 27 | 2011-02-12 Paul Eggert <eggert@cs.ucla.edu> |
| 28 | 28 | ||
| 29 | Port to Sun C 5.11, which has __attribute__ ((__aligned (N))). | ||
| 30 | * md5.h (ATTRIBUTE_ALIGNED): New macro. | ||
| 31 | (struct md5_ctx): Use it. | ||
| 32 | |||
| 29 | Port to Solaris 10, which doesn't support FC_HINT_STYLE. | 33 | Port to Solaris 10, which doesn't support FC_HINT_STYLE. |
| 30 | * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not | 34 | * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not |
| 31 | defined. | 35 | defined. |
| @@ -72,9 +72,10 @@ typedef u_int32_t md5_uint32; | |||
| 72 | #endif | 72 | #endif |
| 73 | 73 | ||
| 74 | 74 | ||
| 75 | #ifndef __GNUC__ | 75 | #if HAVE_ATTRIBUTE_ALIGNED |
| 76 | #define __attribute__(X) | 76 | # define ATTRIBUTE_ALIGNED(N) __attribute__ ((__aligned__ (N))) |
| 77 | #define __alignof__(X) 1 | 77 | #else |
| 78 | # define ATTRIBUTE_ALIGNED(N) | ||
| 78 | #endif | 79 | #endif |
| 79 | 80 | ||
| 80 | /* Structure to save state of computation between the single steps. */ | 81 | /* Structure to save state of computation between the single steps. */ |
| @@ -87,7 +88,7 @@ struct md5_ctx | |||
| 87 | 88 | ||
| 88 | md5_uint32 total[2]; | 89 | md5_uint32 total[2]; |
| 89 | md5_uint32 buflen; | 90 | md5_uint32 buflen; |
| 90 | char buffer[128] __attribute__ ((__aligned__ (__alignof__ (md5_uint32)))); | 91 | char buffer[128] ATTRIBUTE_ALIGNED (__alignof__ (md5_uint32)); |
| 91 | }; | 92 | }; |
| 92 | 93 | ||
| 93 | /* | 94 | /* |
| @@ -145,4 +146,3 @@ extern void *md5_buffer (const char *buffer, size_t len, | |||
| 145 | void *resblock); | 146 | void *resblock); |
| 146 | 147 | ||
| 147 | #endif /* md5.h */ | 148 | #endif /* md5.h */ |
| 148 | |||