Ticket #39334: dvipdfmx-takanori.diff
File dvipdfmx-takanori.diff, 862 bytes (added by takanori@…, 11 years ago) |
---|
-
src/dpxcrypt.h
old new 24 24 #define _DPXCRYPT_H_ 25 25 26 26 #include <stdio.h> 27 #include <stdint.h> 27 28 28 29 /* libgcrypt md5 */ 29 30 typedef struct { 30 u nsigned longA,B,C,D; /* chaining variables */31 uint32_t A,B,C,D; /* chaining variables */ 31 32 unsigned long nblocks; 32 33 unsigned char buf[64]; 33 34 int count; -
src/dpxcrypt.c
old new 281 281 #define X(a) do { *p++ = hd->a; *p++ = hd->a >> 8; \ 282 282 *p++ = hd->a >> 16; *p++ = hd->a >> 24; } while (0) 283 283 #else /* little endian */ 284 #define X(a) do { *(u nsigned long *)p = (*hd).a ; p += 4; } while (0)284 #define X(a) do { *(uint32_t *)p = (*hd).a ; p += sizeof(uint32_t); } while (0) 285 285 #endif 286 286 X(A); 287 287 X(B);