mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[alignof] Compilation fix
This commit is contained in:
parent
38cd5410bf
commit
9254649aaf
@ -100,7 +100,7 @@ safe_write(int fd, const void *buf, size_t count) {
|
||||
|
||||
#if !defined(alignof) && ((!defined(__cplusplus) || __cplusplus < 201103L))
|
||||
/* Alignment of types. */
|
||||
#define alignof(TYPE) offsetof(struct { unsigned char dummy1; TYPE dummy; }, dummy2)
|
||||
#define alignof(TYPE) offsetof(struct { unsigned char dummy1; TYPE dummy2; }, dummy2)
|
||||
#endif
|
||||
|
||||
/* Using this macro to copy structs is both faster and safer than
|
||||
|
Loading…
x
Reference in New Issue
Block a user