| Index: include/core/SkPostConfig.h
|
| diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h
|
| index 41ad93098913f41a0c369f095bf3c836440a1ce8..cf111af37c74c3302bb7d3e327c68291659891b8 100644
|
| --- a/include/core/SkPostConfig.h
|
| +++ b/include/core/SkPostConfig.h
|
| @@ -68,6 +68,15 @@
|
| # endif
|
| #endif
|
|
|
| +// As usual, there are two ways to increase alignment... the MSVC way and the everyone-else way.
|
| +#ifndef SK_STRUCT_ALIGN
|
| + #ifdef _MSC_VER
|
| + #define SK_STRUCT_ALIGN(N) __declspec(align(N))
|
| + #else
|
| + #define SK_STRUCT_ALIGN(N) __attribute__((aligned(N)))
|
| + #endif
|
| +#endif
|
| +
|
| #if !defined(SK_SUPPORT_GPU)
|
| # define SK_SUPPORT_GPU 1
|
| #endif
|
|
|