| Index: include/core/SkPostConfig.h
|
| diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h
|
| index 88a2bfcb648a540364794d1eea125af0c634192b..325343425a40adeff8d3e472d1988bb271ea4165 100644
|
| --- a/include/core/SkPostConfig.h
|
| +++ b/include/core/SkPostConfig.h
|
| @@ -68,6 +68,16 @@
|
| # endif
|
| #endif
|
|
|
| +/**
|
| + * Used to align stack allocated variables/buffers.
|
| + * Different compilers have different ways to accomplish this.
|
| + */
|
| +#if defined(_MSC_VER)
|
| +# define SK_ALIGN(x) __declspec(align(x))
|
| +#else
|
| +# define SK_ALIGN(x) __attribute__((aligned(x)))
|
| +#endif
|
| +
|
| #if !defined(SK_SUPPORT_GPU)
|
| # define SK_SUPPORT_GPU 1
|
| #endif
|
|
|