mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 19:53:46 +00:00
Refine ss_align for MinGW32
This commit is contained in:
@@ -248,6 +248,8 @@ ss_align(size_t size)
|
||||
#ifdef HAVE_POSIX_MEMALIGN
|
||||
/* ensure 16 byte alignment */
|
||||
err = posix_memalign(&tmp, 16, size);
|
||||
#elif __MINGW32__
|
||||
tmp = __mingw_aligned_malloc(size, 16);
|
||||
#else
|
||||
err = -1;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user