mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Release 4.0.1
This commit is contained in:
parent
2fb39e3567
commit
e6987284fd
1 changed files with 9 additions and 1 deletions
|
@ -13,6 +13,14 @@
|
|||
#define MAX_CID_LEN 20
|
||||
#define GQUIC_CID_LEN 8
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define ALIGNED_(x) __declspec(align(x))
|
||||
#else
|
||||
#if defined(__GNUC__)
|
||||
#define ALIGNED_(x) __attribute__ ((aligned(x)))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Connection ID
|
||||
*/
|
||||
|
@ -21,7 +29,7 @@ typedef struct lsquic_cid
|
|||
uint8_t buf[MAX_CID_LEN];
|
||||
#define idbuf buf
|
||||
uint_fast8_t len;
|
||||
} __attribute__((__aligned__(8)))
|
||||
} ALIGNED_(8)
|
||||
lsquic_cid_t;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue