diff options
| author | Andrew Hsieh <andrewhsieh@google.com> | 2013-01-09 17:26:42 +0800 |
|---|---|---|
| committer | Andrew Hsieh <andrewhsieh@google.com> | 2013-01-09 17:33:13 +0800 |
| commit | bbff7fbd6433f4f6fe43a31ec3745f05d0d8c0d6 (patch) | |
| tree | cef3244f24e9cf77126dc483ad5793e038f007d4 /testrunner/coverage/coverage.py | |
| parent | 7d6e479464be322f0d3786127c5eb4640713a38b (diff) | |
Sync stddef.h
To be the same as bionic's. See
ec37237d69289e2bb9836bfa0d071ab958234d00
The new one also no longer undef offsetof and replaces it with
"((size_t) &((TYPE *)0)->MEMBER)" if __compiler_offsetof isn't
defined. The problem with the old behavior are that
1. __compiler_offsetof isn't defined in linux/compiler.h even though
all Android compilers support __builtin_offsetof
2. As as result, offsetof defined in stddef.h to use __builtin_offsetof
is undefined and replaced here. Problem is,
"((size_t) &((TYPE *)0)->MEMBER)" isn't considered a compile-time
constant, and fails some code expect offsetof to be.
Change-Id: I3ebb0de9e1d95305a0890a099360ff6936d24b2f
Diffstat (limited to 'testrunner/coverage/coverage.py')
0 files changed, 0 insertions, 0 deletions
