diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-13 02:21:52 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-13 02:21:52 +0200 |
commit | a3d7a98b8ea211ac0e766d328f9e595c70a887ba (patch) | |
tree | 96c4ec9c90e2c7d2d8cf2809a78b3db6cf913d02 /include | |
parent | info: stdalign.h (diff) | |
download | slibc-a3d7a98b8ea211ac0e766d328f9e595c70a887ba.tar.gz slibc-a3d7a98b8ea211ac0e766d328f9e595c70a887ba.tar.bz2 slibc-a3d7a98b8ea211ac0e766d328f9e595c70a887ba.tar.xz |
add todo about undefined behaviour of offsetof
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/stddef.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stddef.h b/include/stddef.h index 871a618..bb239f8 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -71,6 +71,8 @@ */ #define offsetof(type, member) \ ((size_t)((char*)&(((type*)NULL)->member) - (char*)NULL)) +/* TODO The behaviour of this is undefined, and a builtin function + * shall be used when available. That would also improve diagnostics. */ |