use __builtin_offsetof to implement offsetof when possible
apparently recent gcc versions have intentionally broken the traditional definition by treating it as a non-constant expression. the traditional definition may also be problematic for c++ programs.
Showing
想要评论请 注册 或 登录