| Index: net/quic/quic_utils.h
|
| diff --git a/net/quic/quic_utils.h b/net/quic/quic_utils.h
|
| index 35b675c63ec7223d752b6a9471585eaadb38e04c..572867212a379a55050f7295af9cd1a0e3742714 100644
|
| --- a/net/quic/quic_utils.h
|
| +++ b/net/quic/quic_utils.h
|
| @@ -18,6 +18,16 @@
|
| #include "net/base/net_export.h"
|
| #include "net/quic/quic_protocol.h"
|
|
|
| +#ifdef _MSC_VER
|
| +// MSVC 2013 and prior don't have alignof or aligned(); they have __alignof and
|
| +// a __declspec instead.
|
| +#define QUIC_ALIGN_OF __alignof
|
| +#define QUIC_ALIGNED(X) __declspec(align(X))
|
| +#else
|
| +#define QUIC_ALIGN_OF alignof
|
| +#define QUIC_ALIGNED(X) __attribute__((aligned(X)))
|
| +#endif // _MSC_VER
|
| +
|
| namespace net {
|
|
|
| class NET_EXPORT_PRIVATE QuicUtils {
|
|
|