mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 08:56:17 +08:00
19 lines
298 B
C
19 lines
298 B
C
#ifndef _align_h_
|
|
#define _align_h_
|
|
|
|
#ifdef ALIGN
|
|
#undef ALIGN
|
|
#endif
|
|
|
|
#if defined(__GNUC__)
|
|
#define ALIGN(x) __attribute__ ((aligned(x)))
|
|
#elif defined(_MSC_VER)
|
|
#define ALIGN(x) __declspec(align(x))
|
|
#elif defined(__ARMCC_VERSION)
|
|
#define ALIGN(x) __align(x)
|
|
#else
|
|
#define ALIGN(x)
|
|
#endif
|
|
|
|
#endif
|