Module Name: src Committed By: christos Date: Thu Oct 24 03:31:38 UTC 2019
Modified Files: src/external/gpl3/gcc/dist/libiberty: sha1.c Log Message: mknative tries to build this file with c++ and c++ does not like types inside offsetof() (a language limitation). To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/libiberty/sha1.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gcc/dist/libiberty/sha1.c diff -u src/external/gpl3/gcc/dist/libiberty/sha1.c:1.4 src/external/gpl3/gcc/dist/libiberty/sha1.c:1.5 --- src/external/gpl3/gcc/dist/libiberty/sha1.c:1.4 Tue Oct 1 06:38:22 2019 +++ src/external/gpl3/gcc/dist/libiberty/sha1.c Wed Oct 23 23:31:38 2019 @@ -229,7 +229,7 @@ sha1_process_bytes (const void *buffer, if (len >= 64) { #if !_STRING_ARCH_unaligned -# ifdef __clang__ +# if defined(__clang__) || defined(__GNUC__) # define alignof(type) __alignof__(type) # else # define alignof(type) offsetof (struct { char c; type x; }, x)