| Index: include/svg/parser/SkSVGAttribute.h
|
| diff --git a/include/svg/parser/SkSVGAttribute.h b/include/svg/parser/SkSVGAttribute.h
|
| index 940ca5a951431169634a853e568f6907a519b5d4..5ba2916b742699cf1fc7d02284a3403e99e2c37d 100644
|
| --- a/include/svg/parser/SkSVGAttribute.h
|
| +++ b/include/svg/parser/SkSVGAttribute.h
|
| @@ -20,7 +20,8 @@ struct SkSVGAttribute {
|
| };
|
|
|
| #ifndef SK_OFFSETOF
|
| -#define SK_OFFSETOF(a, b) (((size_t) (&(((a*) 1)->b)))-1)
|
| + // This is offsetof for types which are not standard layout.
|
| + #define SK_OFFSETOF(type, field) (size_t)((char*)&(((type*)1024)->field) - (char*)1024)
|
| #endif
|
|
|
| #ifdef SK_DEBUG
|
|
|